aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-03-10 11:57:30 -0500
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-03-10 11:57:30 -0500
commit89b7b2ae27cbab6a7edd5fa3759949afe2cd2f71 (patch)
treee3d034d928a63f478ea705c083a3f74764e38d03 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
parente7dd6dbdf8d01cef390ff65c0948e5e70ac232cf (diff)
parent80597c4780b1e8833d3742339836815d388356d2 (diff)
conflicts
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 660790b11..ec5cb8a61 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -950,7 +950,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
doc.hidden && Doc.UnHighlightDoc(doc);
const resetView = options?.afterFocus ? await options?.afterFocus(moved) : ViewAdjustment.doNothing;
if (resetView) {
- const restoreState = !LightboxView.LightboxDoc || LightboxView.LightboxDoc === this.props.Document && savedState;
+ const restoreState = (!LightboxView.LightboxDoc || LightboxView.LightboxDoc === this.props.Document) && savedState;
if (typeof restoreState !== "boolean") {
this.Document._panX = restoreState.panX;
this.Document._panY = restoreState.panY;