diff options
author | bobzel <zzzman@gmail.com> | 2025-04-10 23:17:20 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-04-10 23:17:20 -0400 |
commit | fea8bcb6264946b29775394c554d47577bb5995b (patch) | |
tree | 822b81b6dc69d2386592367cf2334e888c572616 /src/client/documents/DocUtils.ts | |
parent | eef391dba5ee9f1588274f8719eb4047fe844e22 (diff) |
fixed instantiate from : menu to delgate templates instead of copying.
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r-- | src/client/documents/DocUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts index 0d15a91e9..5a8230847 100644 --- a/src/client/documents/DocUtils.ts +++ b/src/client/documents/DocUtils.ts @@ -380,7 +380,7 @@ export namespace DocUtils { .map(dragDoc => ({ description: ':' + StrCast(dragDoc.title).replace('Untitled ', ''), event: undoable(() => { - const newDoc = DocUtils.copyDragFactory(dragDoc); + const newDoc = (Doc.isTemplateDoc(dragDoc) ? DocUtils.delegateDragFactory : DocUtils.copyDragFactory)(dragDoc); if (newDoc) { newDoc._author = ClientUtils.CurrentUserEmail(); newDoc.x = x; |