aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-03-23 15:16:40 -0400
committermehekj <mehek.jethani@gmail.com>2023-03-23 15:16:40 -0400
commit5c22004907c210951154017609746e86362c4fb5 (patch)
tree108371dccd171c6bd523a01dc3f39a657d85ad96 /src/client/views/GlobalKeyHandler.ts
parent016e51965ae2d0a83ca2d4e17000d57a40aac264 (diff)
parent923f0fdb0f039a923e4e6f870158bd2f2ba32db0 (diff)
Merge branch 'master' into schema-mehek
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..0f8b46dbe 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, true)).clone : d)));
if (added.length) {
added.map(doc => (doc.context = targetDataDoc));
undoBatch(() => {