aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-02 18:20:59 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-02 18:20:59 -0500
commitac177d7b9a01075fbf1ad1c327c7625d95569afb (patch)
treeea89bf577df1afa960109f2b741dee3faec450c5 /src/client/views/nodes/DocumentView.tsx
parentf818303cb164b471805075226cba5451f35b27a2 (diff)
bug fixes found with sally
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 30382a4ef..ec0a5f3ac 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -677,10 +677,10 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
@action
onCopy = () => {
- const copy = Doc.MakeCopy(this.props.Document, true);
- copy.x = NumCast(this.props.Document.x) + NumCast(this.props.Document._width);
- copy.y = NumCast(this.props.Document.y) + 30;
- this.props.addDocument?.(copy);
+ const alias = Doc.MakeAlias(this.props.Document);
+ alias.x = NumCast(this.props.Document.x) + NumCast(this.props.Document._width);
+ alias.y = NumCast(this.props.Document.y) + 30;
+ this.props.addDocument?.(alias);
}
@action