Use the readable schema when generating search field options

This commit is contained in:
Andrew Kingston 2022-04-12 16:27:14 +01:00
parent c750c3ef32
commit ff986c7f85
1 changed files with 1 additions and 3 deletions

View File

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