1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

Fix issue when rendering fields without field names

This commit is contained in:
Andrew Kingston 2021-08-24 15:33:07 +01:00
parent 0516d3d0ef
commit af7a2e8401

View file

@ -32,12 +32,12 @@
) )
// Update form properties in parent component on every store change // Update form properties in parent component on every store change
const unsubscribe = formField.subscribe(value => { const unsubscribe = formField?.subscribe(value => {
fieldState = value?.fieldState fieldState = value?.fieldState
fieldApi = value?.fieldApi fieldApi = value?.fieldApi
fieldSchema = value?.fieldSchema fieldSchema = value?.fieldSchema
}) })
onDestroy(unsubscribe) onDestroy(() => unsubscribe && unsubscribe())
// Keep validation rules up to date // Keep validation rules up to date
$: updateValidation(validation) $: updateValidation(validation)