diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-05 17:44:54 -0400 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-05 17:44:54 -0400 |
commit | 0a0a467df5f87adb1f9872c82cc58bbc6c1046d7 (patch) | |
tree | 4d9938af3f2f7f8b0134ca440fc05ac64dba9168 /src | |
parent | 16ecec059993f4f5ac3680afc0eb00eb559db91e (diff) |
cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/TreeView.tsx | 4 |
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) => { |