Skip to content

Commit f10f7ea

Browse files
Jay-0511MilosPaunovicPiyush-r-bhaskar
authored
Fix(UI)/kv type boolean (#12643)
Co-authored-by: Miloš Paunović <[email protected]> Co-authored-by: Piyush Bhaskar <[email protected]>
1 parent 4c58a64 commit f10f7ea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ui/src/components/kv/KVTable.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,9 @@
605605
606606
const formRef = ref();
607607
608-
watch(() => kv.value.type, () => {
609-
if (formRef.value) {
610-
(formRef.value as any).clearValidate("value");
611-
}
608+
watch(() => kv.value.type, (newType) => {
609+
formRef.value?.clearValidate("value");
610+
if (newType === "BOOLEAN") kv.value.value = false;
612611
});
613612
614613
defineExpose({

0 commit comments

Comments
 (0)