fix(components): add null propagation to accessor in findUser

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-01-04 20:47:43 -05:00
parent 69cdaba253
commit 4d6398d09f
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -34,7 +34,7 @@
});
let fieldo = useField<number | number[]>(props.fieldName, undefined, {
// @ts-ignore
initialValue: initO.value || null,
initialValue: initO?.value || null,
});
const { value, errorMessage, name, setValue } = fieldo;