1
0
Fork 0
mirror of synced 2024-09-10 14:35:47 +12:00

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 c717273996
commit 57d1d9c2d5

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)