catalog-react: fix EntityNamespaceFilter

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-06-15 19:33:44 +02:00
parent 167d08dca0
commit a996c54f68
+1 -1
View File
@@ -189,7 +189,7 @@ export class EntityNamespaceFilter implements EntityFilter {
constructor(readonly values: string[]) {}
getCatalogFilters(): Record<string, string | string[]> {
return { 'spec.lifecycle': this.values };
return { 'metadata.namespace': this.values };
}
filterEntity(entity: Entity): boolean {
return this.values.some(v => entity.metadata.namespace === v);