aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PresBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-27 22:35:15 -0400
committerbobzel <zzzman@gmail.com>2020-08-27 22:35:15 -0400
commitd74811f0877709ad4005651bbd6eb9213378e45a (patch)
treef3115b47431a7944448067a4411e2edb52bd65bd /src/client/views/nodes/PresBox.tsx
parent749fbe6ae14497cb0397905657bd66cb0182707c (diff)
fixed up undo for copy/cloning documents and for opening mainMenu sidebar
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
-rw-r--r--src/client/views/nodes/PresBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx
index 5094c955f..02c62be95 100644
--- a/src/client/views/nodes/PresBox.tsx
+++ b/src/client/views/nodes/PresBox.tsx
@@ -259,7 +259,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema>
// adjust the pan and scale to that of the pinView when it was added.
// TODO: Add option to remove presPinView
if (activeItem.presPinView) {
- // if targetDoc has been closed, then we will have created and displayed
+ // if targetDoc is not displayed but one of its aliases is, then we need to modify that alias, not the original target
const bestTarget = DocumentManager.Instance.getFirstDocumentView(targetDoc)?.props.Document;
bestTarget && runInAction(() => {
bestTarget!._viewTransition = "all 1s";