Catalog: Fixes issue where the query kind parameter is not accepted

Signed-off-by: Gustaf Lundh <gustaf.lundh@axis.com>
This commit is contained in:
Gustaf Lundh
2022-10-18 00:33:06 +02:00
parent e167b944ae
commit e9e532ebd8
2 changed files with 6 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Fixed issue where the query kind parameter is not honored
@@ -154,10 +154,7 @@ export const EntityKindPicker = (props: EntityKindPickerProps) => {
severity: 'error',
});
}
if (initialFilter) {
setSelectedKind(initialFilter);
}
}, [error, alertApi, initialFilter, setSelectedKind]);
}, [error, alertApi]);
if (availableKinds?.length === 0 || error) return null;