Filter out fields without filtering options
This commit is contained in:
parent
e8dbb8f681
commit
cf2778cbaa
|
@ -46,7 +46,9 @@
|
||||||
|
|
||||||
$: parseFilters(filters)
|
$: parseFilters(filters)
|
||||||
$: dispatch("change", enrichFilters(rawFilters, matchAny, onEmptyFilter))
|
$: dispatch("change", enrichFilters(rawFilters, matchAny, onEmptyFilter))
|
||||||
$: enrichedSchemaFields = getFields(schemaFields || [], { allowLinks: true })
|
$: enrichedSchemaFields = getFields(schemaFields || [], {
|
||||||
|
allowLinks: true,
|
||||||
|
}).filter(f => !!getValidOperatorsForType({ field: f.name, ...f }).length)
|
||||||
$: fieldOptions = enrichedSchemaFields.map(field => field.name) || []
|
$: fieldOptions = enrichedSchemaFields.map(field => field.name) || []
|
||||||
$: valueTypeOptions = allowBindings ? ["Value", "Binding"] : ["Value"]
|
$: valueTypeOptions = allowBindings ? ["Value", "Binding"] : ["Value"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue