Fix monitor tags deletion: don't remove all the tags from the UI when deleting a single one

This commit is contained in:
Ionys 2024-12-20 16:10:47 +01:00
parent fd55659c2b
commit b9a4b5d5ee

View file

@ -197,7 +197,7 @@ export default {
return tagOptions; return tagOptions;
}, },
selectedTags() { selectedTags() {
return this.preSelectedTags.concat(this.newTags).filter(tag => !this.deleteTags.find(monitorTag => monitorTag.id === tag.id)); return this.preSelectedTags.concat(this.newTags).filter(tag => !this.deleteTags.find(monitorTag => monitorTag.tag_id === tag.tag_id));
}, },
colorOptions() { colorOptions() {
return colorOptions(this); return colorOptions(this);