Browse Source

Use the readable schema when generating search field options

pull/5389/head
Andrew Kingston 4 years ago
parent
commit
ff986c7f85
  1. 4
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/SearchFieldSelect.svelte

4
packages/builder/src/components/design/PropertiesPanel/PropertyControls/SearchFieldSelect.svelte

@ -15,9 +15,7 @@
const dispatch = createEventDispatcher()
$: datasource = getDatasourceForProvider($currentAsset, componentInstance)
$: schema = getSchemaForDatasource($currentAsset, datasource, {
searchableSchema: true,
}).schema
$: schema = getSchemaForDatasource($currentAsset, datasource).schema
$: options = getOptions(datasource, schema || {})
$: boundValue = getSelectedOption(value, options)

Loading…
Cancel
Save