diff --git a/plugins/catalog-react/src/filters.ts b/plugins/catalog-react/src/filters.ts index 7a80eb6d31..418afeab92 100644 --- a/plugins/catalog-react/src/filters.ts +++ b/plugins/catalog-react/src/filters.ts @@ -32,10 +32,14 @@ export class EntityKindFilter implements EntityFilter { } export class EntityTypeFilter implements EntityFilter { - constructor(readonly value: string) {} + constructor(readonly value: string | string[]) {} + + getTypes() { + return Array.isArray(this.value) ? this.value : [this.value]; + } getCatalogFilters(): Record { - return { 'spec.type': this.value }; + return { 'spec.type': this.getTypes() }; } }