diff options
| author | bobzel <zzzman@gmail.com> | 2023-03-20 20:48:38 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-03-20 20:48:38 -0400 |
| commit | b25f333713706a7456ab418960082bcabe830f11 (patch) | |
| tree | a893cbcc3b089d15eebd0f9f91d8939ad713e2fc /src/client/views/GlobalKeyHandler.ts | |
| parent | 081f328c117ffdf7ab284be86cdf0342041e7708 (diff) | |
fixed copying of docs with template layout docs. fixed clone to search through RTFs for referenced documents to clone. renamed nested documents docId instead of docid for consistency with other nested field ids.
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 f849b21e3..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, ['links'])).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(() => { |
