Fix: Tag Interface Delete Button #104256
@ -163,15 +163,10 @@ export default {
|
||||
api
|
||||
.deleteWorkerTag(this.selectedTag.id)
|
||||
.then(() => {
|
||||
const index = this.tags.findIndex(
|
||||
(tag) => tag.id === this.selectedTag.id
|
||||
);
|
||||
if (index !== -1) {
|
||||
this.tags.splice(index, 1);
|
||||
}
|
||||
|
||||
this.selectedTag = null;
|
||||
this.tabulator.setData(this.tags);
|
||||
|
||||
this.fetchTags();
|
||||
})
|
||||
.catch((error) => {
|
||||
const errorMsg = JSON.stringify(error);
|
||||
|
Loading…
Reference in New Issue
Block a user