Fix crash with dynamic filter when using custom data source
This commit is contained in:
parent
92d8dc14a1
commit
32b0aa34b8
|
@ -58,13 +58,13 @@
|
|||
}
|
||||
let clonedSchema = {}
|
||||
if (!allowedFields?.length) {
|
||||
clonedSchema = schema
|
||||
clonedSchema = schema || {}
|
||||
} else {
|
||||
allowedFields?.forEach(field => {
|
||||
if (schema[field.name]) {
|
||||
if (schema?.[field.name]) {
|
||||
clonedSchema[field.name] = schema[field.name]
|
||||
clonedSchema[field.name].displayName = field.displayName
|
||||
} else if (schema[field]) {
|
||||
} else if (schema?.[field]) {
|
||||
clonedSchema[field] = schema[field]
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue