diff options
| author | bobzel <zzzman@gmail.com> | 2023-07-28 10:25:47 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-07-28 10:25:47 -0400 |
| commit | 8749e3bc1994a8150be7cab59988fcb21a93bbe4 (patch) | |
| tree | 870c538dc5bf41239f962e98c4eff6282c798f14 /src/client/views/DocComponent.tsx | |
| parent | 2eb42fd6299532d47ba16edb983e85fe49bb582f (diff) | |
| parent | bf34928ad34d45f97c69da91b965c21f47edb5bf (diff) | |
Merge branch 'master' into sophie-report-manager
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); |
