fix: clear selected_field if field is removed

This commit is contained in:
Shariq Ansari 2022-10-19 00:52:51 +05:30
parent 7461537a74
commit 2f87db7aef

View file

@ -16,6 +16,9 @@ watch(
nextTick(() => label_input.value.focus());
store.selected_field = props.field.df;
}
if (props.field.remove) {
store.selected_field = null;
}
},
{ deep: true }
);