Skip to content

Commit

Permalink
PATCH: delete viewpoint (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil authored Jul 23, 2024
1 parent 74ea8a6 commit 675d00c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/bcf-topic-form/BcfTopicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ export default {
// Avoid updating snapshots as it is not possible
// (you can only create/delete snapshots).
viewpointsToUpdate.value = viewpoints.value.map((viewpoint) => ({
viewpointsToUpdate.value = viewpoints.value
.filter(viewpoint => !viewpointsToDelete.value.some(v => v.guid && v.guid === viewpoint.guid))
.map(viewpoint => ({
...viewpoint,
snapshot: undefined,
}));
Expand Down

0 comments on commit 675d00c

Please sign in to comment.