aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/DashDocCommentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-17 13:31:25 -0400
committerbobzel <zzzman@gmail.com>2024-10-17 13:31:25 -0400
commit5e3f9d84da226e62ce109cc2c0b00ba76eb45189 (patch)
tree7516f80d96cb28088a49b1cba0edf7df78821c47 /src/client/views/nodes/formattedText/DashDocCommentView.tsx
parent14f412611299fc350f13b6f96be913d59533cfb3 (diff)
parent4a9330e996b9117fb27560b9898b6fc1dbb78f96 (diff)
Merge branch 'master' into ajs-before-executable
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocCommentView.tsx')
-rw-r--r--src/client/views/nodes/formattedText/DashDocCommentView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocCommentView.tsx b/src/client/views/nodes/formattedText/DashDocCommentView.tsx
index 0304ddc86..967f4aa5b 100644
--- a/src/client/views/nodes/formattedText/DashDocCommentView.tsx
+++ b/src/client/views/nodes/formattedText/DashDocCommentView.tsx
@@ -68,7 +68,7 @@ export class DashDocCommentViewInternal extends React.Component<IDashDocCommentV
expand && this._dashDoc.then(async dashDoc => dashDoc instanceof Doc && Doc.linkFollowHighlight(dashDoc));
try {
this.props.view.dispatch(this.props.view.state.tr.setSelection(TextSelection.create(this.props.view.state.tr.doc, (this.props.getPos() ?? 0) + (expand ? 2 : 1))));
- } catch (err) {
+ } catch {
/* empty */
}
}, 0);
@@ -95,7 +95,7 @@ export class DashDocCommentViewInternal extends React.Component<IDashDocCommentV
setTimeout(() => {
try {
this.props.view.dispatch(state.tr.setSelection(TextSelection.create(state.tr.doc, this.props.getPos() + 2)));
- } catch (err) {
+ } catch {
/* empty */
}
}, 0);