diff options
author | bobzel <zzzman@gmail.com> | 2022-10-13 10:39:33 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-13 10:39:33 -0400 |
commit | dd5cfe5302279d708bd8fbc7b9cad7ea082758c4 (patch) | |
tree | 45fb46e22b6a20a46e98affa9e1f113e1736b27a /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | 0b32679cba4cbfd97845b301266be25d1e3987bd (diff) |
some basic error checking. avoid querying background for non-toggle buttons
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index a48906372..04c7b96e3 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -222,7 +222,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF panelWidth = () => this.sizeProvider?.width || this.props.PanelWidth?.(); panelHeight = () => this.sizeProvider?.height || this.props.PanelHeight?.(); screenToLocalTransform = (): Transform => this.props.ScreenToLocalTransform().translate(-this.X, -this.Y); - focusDoc = (doc: Doc) => this.props.focus(doc); + focusDoc = (doc: Doc) => this.props.focus(doc, {}); returnThis = () => this; render() { TraceMobx(); |