Reset save req selection when selected item is deleted

This commit is contained in:
Andrew Bastin
2021-06-15 08:26:01 -04:00
parent 07a505c365
commit 0921cccb4c
6 changed files with 62 additions and 0 deletions

View File

@@ -189,6 +189,11 @@ export default {
},
removeFolder() {
if (this.collectionsType.selectedTeam.myRole !== "VIEWER") {
// Cancel pick if picked collection folder was deleted
if (this.picked && this.picked.pickedType === "teams-folder" && this.picked.folderID === this.folder.id) {
this.$emit("select", { picked: null })
}
teamUtils
.deleteCollection(this.$apollo, this.folder.id)
.then(() => {