fix: ensure computedEvents returns an empty object when componentEvents is undefined
parent
cade5b0f8f
commit
7db92b069e
|
@ -161,9 +161,11 @@ const computedProps = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const computedEvents = computed(() => {
|
const computedEvents = computed(() => {
|
||||||
return isFunction(componentEvents)
|
return (
|
||||||
? componentEvents(values.value, formApi!)
|
(isFunction(componentEvents)
|
||||||
: componentEvents;
|
? componentEvents(values.value, formApi!)
|
||||||
|
: componentEvents) ?? {}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
Loading…
Reference in New Issue