Builder test fixes

This commit is contained in:
Dean 2024-09-10 11:05:49 +01:00
parent e389bd8121
commit 5cc8433773
1 changed files with 2 additions and 2 deletions

View File

@ -202,10 +202,10 @@ export class ComponentStore extends BudiStore {
}
const def = this.getDefinition(enrichedComponent?._component)
const filterableTypes = def.settings.filter(setting =>
const filterableTypes = def?.settings?.filter(setting =>
setting?.type?.startsWith("filter")
)
for (let setting of filterableTypes) {
for (let setting of filterableTypes || []) {
enrichedComponent[setting.key] = utils.processSearchFilters(
enrichedComponent[setting.key]
)