Skip to content

Commit a8c1372

Browse files
committed
refactor: simplify spinner visibility logic in ColumnValueInputWrapper
1 parent a9f259c commit a8c1372

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adminforth/spa/src/components/ColumnValueInputWrapper.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,14 @@
7979
8080
8181
watch(() => props.currentValues[props.column.name], async (newVal) => {
82-
console.log('Current value for column', props.column.name, 'changed to', newVal);
8382
await nextTick();
8483
if (props.isValidating) {
8584
shouldWeShowSpinner.value = true;
8685
}
8786
});
8887
89-
watch(() => [props.columnsWithErrors[props.column.name], props.isValidating], () => {
90-
if (props.isValidating) {
91-
shouldWeShowSpinner.value = false;
92-
} else {
88+
watch(() => [props.isValidating], () => {
89+
if (!props.isValidating) {
9390
shouldWeShowSpinner.value = false;
9491
}
9592
});

0 commit comments

Comments
 (0)