diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-07-22 20:16:53 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-07-22 20:16:53 -0400 |
commit | 8f95d52ed2b93930716ab6ed0ba9aab5c438876c (patch) | |
tree | d41bec1ac0d4cbdbf670c5dd12caf38f868e8367 /src/client/views/GlobalKeyHandler.ts | |
parent | 828a28e112db3357f52d3923987070129fd64b21 (diff) |
fixed document download/import to capture links as well.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index b63537b5f..086085db5 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -315,7 +315,7 @@ export default 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) : d)); + const added = await Promise.all(list.filter(d => !docList.includes(d)).map(async d => clone ? (await Doc.MakeClone(d)).clone : d)); if (added.length) { added.map(doc => doc.context = targetDataDoc); undoBatch(() => { |