Web Interface for Tags #104244
@ -163,15 +163,10 @@ export default {
|
|||||||
api
|
api
|
||||||
.deleteWorkerTag(this.selectedTag.id)
|
.deleteWorkerTag(this.selectedTag.id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const index = this.tags.findIndex(
|
|
||||||
(tag) => tag.id === this.selectedTag.id
|
|
||||||
);
|
|
||||||
if (index !== -1) {
|
|
||||||
this.tags.splice(index, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.selectedTag = null;
|
this.selectedTag = null;
|
||||||
this.tabulator.setData(this.tags);
|
this.tabulator.setData(this.tags);
|
||||||
|
|
||||||
|
|||||||
|
this.fetchTags();
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const errorMsg = JSON.stringify(error);
|
const errorMsg = JSON.stringify(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user
isSelected
is not used, so it can be removed. Also I don't see it working, given that it uses an undefined variabletag
.