diff options
author | bobzel <zzzman@gmail.com> | 2021-03-07 23:22:39 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-07 23:22:39 -0500 |
commit | ca6e8145c5883e32f4cc65edbfff245cdde326ed (patch) | |
tree | 7cb30791c0153ae22dc6db4d8a9742e863390f45 /src/client/views/DocComponent.tsx | |
parent | f23e497d5ad05b9af0f90b69f9a383deed0c1e39 (diff) |
added removal of docs to git-like actions.
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 128ba858f..6480c6507 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -144,6 +144,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps, T const recent = Cast(Doc.UserDoc().myRecentlyClosedDocs, Doc) as Doc; toRemove.forEach(doc => { Doc.RemoveDocFromList(targetDataDoc, annotationKey ?? this.annotationKey, doc); + doc.context = undefined; recent && Doc.AddDocToList(recent, "data", doc, undefined, true, true); }); this.props.select(false); |