aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-17 09:24:34 -0400
committerbobzel <zzzman@gmail.com>2023-03-17 09:24:34 -0400
commit4ecac6f070759e79c254f4a356d02a871ac6abb5 (patch)
tree08b1a8272096ac3a7ff11cb26d78a72b894bcc33 /src/client/views/GlobalKeyHandler.ts
parentde0df48cba8e89256a3208fbadfd5afaaa9e22d3 (diff)
fixed copy paste to clone links if both anchors are copied. adjusted API for clone to have a cloneLinks field.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index 3fbf6e445..f849b21e3 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -372,7 +372,7 @@ export class KeyManager {
list.push(doc);
}
if (count === docids.length) {
- const added = await Promise.all(list.filter(d => !docList.includes(d)).map(async d => (clone ? (await Doc.MakeClone(d)).clone : d)));
+ const added = await Promise.all(list.filter(d => !docList.includes(d)).map(async d => (clone ? (await Doc.MakeClone(d, ['links'])).clone : d)));
if (added.length) {
added.map(doc => (doc.context = targetDataDoc));
undoBatch(() => {