diff options
| author | bobzel <zzzman@gmail.com> | 2023-07-28 11:17:58 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-07-28 11:17:58 -0400 |
| commit | e910ed7b5b4ef317b00b39445eee0652393145ec (patch) | |
| tree | d3e5d2237a47a3760d7779eb48d858a2c58e028c /src/client/views/DocComponent.tsx | |
| parent | 4a8cf5ee3fd6f01ff2d28ccc0a456e9782bd261b (diff) | |
| parent | bf34928ad34d45f97c69da91b965c21f47edb5bf (diff) | |
Merge branch 'master' into james-azure-image
Diffstat (limited to 'src/client/views/DocComponent.tsx')
| -rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index a41fc8ded..8fe5c2e01 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -145,7 +145,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps>() const toRemove = value.filter(v => docs.includes(v)); if (toRemove.length !== 0) { - const recent = Doc.MyRecentlyClosed; + const recent = this.rootDoc !== Doc.MyRecentlyClosed ? Doc.MyRecentlyClosed : undefined; toRemove.forEach(doc => { leavePushpin && DocUtils.LeavePushpin(doc, annotationKey ?? this.annotationKey); Doc.RemoveDocFromList(targetDataDoc, annotationKey ?? this.annotationKey, doc); |
