Skip to content

Commit

Permalink
Merge pull request #63 from ConductionNL/feature/REGISTERS-50/source-…
Browse files Browse the repository at this point in the history
…empty-store-fix

fixed store not emptying after deletion
  • Loading branch information
RalkeyOfficial authored Nov 11, 2024
2 parents 28a3039 + e83d872 commit d81f038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modals/source/DeleteSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { sourceStore, navigationStore } from '../../store/store.js'
size="normal"
:can-close="false">
<p v-if="!success">
Do you want to permanently delete <b>{{ sourceStore.sourceItem.title }}</b>? This action cannot be undone.
Do you want to permanently delete <b>{{ sourceStore.sourceItem?.title }}</b>? This action cannot be undone.
</p>

<NcNoteCard v-if="success" type="success">
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const useSourceStore = defineStore(
}

this.refreshSourceList()
this.setSourceItem(null)

return { response, data: responseData }

Expand Down

0 comments on commit d81f038

Please sign in to comment.