mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 00:12:17 +00:00
Deselect a tag if it is selected when removing (#9614)
This commit is contained in:
parent
d9e09a5f3d
commit
7797794cd5
1 changed files with 3 additions and 0 deletions
|
|
@ -407,6 +407,9 @@ export default {
|
|||
this.newTag = null;
|
||||
},
|
||||
removeTag (index, key) {
|
||||
const tagId = this.tagsSnap[key][index].id;
|
||||
const indexInSelected = this.selectedTags.indexOf(tagId);
|
||||
if (indexInSelected !== -1) this.$delete(this.selectedTags, indexInSelected);
|
||||
this.$delete(this.tagsSnap[key], index);
|
||||
},
|
||||
saveTags () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue