Skip to content

Commit 1cfb0e8

Browse files
committed
chore: Update default.vue to handle null or undefined values for input control
1 parent 5ebefa6 commit 1cfb0e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/quasar-jsonform/util/composition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export const useQuasarControl = <
114114
};
115115

116116
// console.log('input.control.value.data', input.control.value.data)
117-
if (isEmpty(input.control.value.data)) {
118-
input.handleChange(input.control.value.path, input.control.value.schema.default || undefined)
117+
if (isEmpty(input.control.value?.data)) {
118+
input.handleChange(input.control.value?.path, input.control.value?.schema?.default || undefined)
119119
// console.log('trigger default', input.control.value.schema.default || null)
120120
}
121121

0 commit comments

Comments
 (0)