Showing
1 changed file
with
4 additions
and
1 deletions
@@ -76,7 +76,10 @@ | @@ -76,7 +76,10 @@ | ||
76 | const handleDeleteEnums = (item: EnumElItemType) => { | 76 | const handleDeleteEnums = (item: EnumElItemType) => { |
77 | const index = unref(enumsListElRef).findIndex((temp) => item.uuid === temp.uuid); | 77 | const index = unref(enumsListElRef).findIndex((temp) => item.uuid === temp.uuid); |
78 | 78 | ||
79 | - ~index && enumsListElRef.value.splice(index, 1); | 79 | + if (~index) { |
80 | + enumsListElRef.value.splice(index, 1); | ||
81 | + validateSameEnum(); | ||
82 | + } | ||
80 | }; | 83 | }; |
81 | 84 | ||
82 | const handleAddEnums = () => { | 85 | const handleAddEnums = () => { |