Browse Source

Fix issue when rendering fields without field names

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
073a7cd3fe
  1. 4
      packages/standard-components/src/forms/Field.svelte

4
packages/standard-components/src/forms/Field.svelte

@ -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)

Loading…
Cancel
Save