aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-06-05 17:44:54 -0400
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-06-05 17:44:54 -0400
commit0a0a467df5f87adb1f9872c82cc58bbc6c1046d7 (patch)
tree4d9938af3f2f7f8b0134ca440fc05ac64dba9168 /src
parent16ecec059993f4f5ac3680afc0eb00eb559db91e (diff)
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/TreeView.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index fc4361935..a20d41a8d 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -511,9 +511,7 @@ export class TreeView extends React.Component<TreeViewProps> {
}
onChildClick = () => this.props.onChildClick?.() ?? (this._editTitleScript?.() || ScriptCast(this.doc.treeChildClick));
- onChildDoubleClick = () => {
- return (!this.props.treeView.outlineMode && this._openScript?.()) || ScriptCast(this.doc.treeChildDoubleClick)
- };
+ onChildDoubleClick = () => (!this.props.treeView.outlineMode && this._openScript?.()) || ScriptCast(this.doc.treeChildDoubleClick);
refocus = () => this.props.treeView.props.focus(this.props.treeView.props.Document);
ignoreEvent = (e: any) => {