1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-03-11 14:49:28 +02:00

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;
},
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() {
return colorOptions(this);