fix search collator filter

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-10-21 14:29:43 +02:00
parent c42c2bae63
commit 0b8f344d76
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search-backend-module-catalog': patch
---
Fixed a bug where the `filter` setting of the collator was not permitted to be an array.
@@ -73,7 +73,7 @@ export function readCollatorConfigOptions(configRoot: Config): {
config.getOptionalString('locationTemplate') ??
defaults.collatorOptions.locationTemplate,
filter:
config.getOptionalConfig('filter')?.get<EntityFilterQuery>() ??
config.getOptional<EntityFilterQuery>('filter') ??
defaults.collatorOptions.filter,
batchSize:
config.getOptionalNumber('batchSize') ??