Prevent filtering on calculation fields

This commit is contained in:
Andrew Kingston 2024-10-11 09:28:48 +01:00
parent 8be7f82ccb
commit ba6def8f73
No known key found for this signature in database
1 changed files with 6 additions and 4 deletions

View File

@ -69,10 +69,12 @@
const context = getContext("context")
$: fieldOptions = (schemaFields || []).map(field => ({
label: field.displayName || field.name,
value: field.name,
}))
$: fieldOptions = (schemaFields || [])
.filter(field => !field.calculationType)
.map(field => ({
label: field.displayName || field.name,
value: field.name,
}))
const onFieldChange = filter => {
const previousType = filter.type