diff --git a/src/store/elements.js b/src/store/elements.js index 2698c2dd4983e8f45e3661748f2a6f456e035d00..6459d61d57a7dc6af787a0bd6b2e0b942840938c 100644 --- a/src/store/elements.js +++ b/src/store/elements.js @@ -317,7 +317,6 @@ export const actions = { try { await api.deleteElement({ id, delete_children: true }) commit('remove', id) - commit('navigation/addToScheduledDeletion', id, { root: true }) if (id === rootState.annotation.selectedElement?.id) { commit('annotation/selectElement', null, { root: true }) } commit('notifications/notify', { type: 'success', text: 'Element deletion has been scheduled.' }, { root: true }) } catch (err) { @@ -332,7 +331,6 @@ export const actions = { try { await api.moveElement(payload) commit('remove', payload.source) - commit('navigation/addToScheduledDeletion', payload.source, { root: true }) commit('notifications/notify', { type: 'success', text: 'Element moving has been scheduled.' }, { root: true }) } catch (err) { commit('notifications/notify', { type: 'error', text: errorParser(err) }, { root: true }) diff --git a/tests/unit/store/elements.spec.js b/tests/unit/store/elements.spec.js index d094abb21dd52df2eb7f544df959319f158829b8..e0b8b9d93b58df17d43631b375ac3c927ca725ea 100644 --- a/tests/unit/store/elements.spec.js +++ b/tests/unit/store/elements.spec.js @@ -599,10 +599,6 @@ describe('elements', () => { mutation: 'elements/remove', payload: 'element' }, - { - mutation: 'navigation/addToScheduledDeletion', - payload: 'element' - }, { mutation: 'notifications/notify', payload: { type: 'success', text: 'Element deletion has been scheduled.' }