aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresentationView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
-rw-r--r--src/client/views/presentationview/PresentationView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/presentationview/PresentationView.tsx b/src/client/views/presentationview/PresentationView.tsx
index 97ec4e2fa..ad3a4bffe 100644
--- a/src/client/views/presentationview/PresentationView.tsx
+++ b/src/client/views/presentationview/PresentationView.tsx
@@ -453,10 +453,11 @@ export class PresentationView extends React.Component<PresViewProps> {
}
@action
- public RemoveDoc = (index: number) => {
+ public RemoveDoc = async (index: number) => {
const value = FieldValue(Cast(this.curPresentation.data, listSpec(Doc)));
if (value) {
- value.splice(index, 1);
+ let removedDoc = await value.splice(index, 1)[0];
+ this.presElementsMappings.delete(removedDoc);
}
}
@action