Merge pull request #8937 from backstage/fix-initial-filter

catalog-react: improve handling of groups with 0 items in UserListPicker
This commit is contained in:
Johan Haals
2022-02-01 16:00:18 +01:00
committed by GitHub
4 changed files with 151 additions and 45 deletions
+10
View File
@@ -0,0 +1,10 @@
---
'@backstage/plugin-catalog-react': patch
---
Fix bug: previously the filter would be set to "all" on page load, even if the
`initiallySelectedFilter` on the `DefaultCatalogPage` was set to something else,
or a different query parameter was supplied. Now, the prop and query parameters
control the filter as expected. Additionally, after this change any filters
which match 0 items will be disabled, and the filter will be reverted to 'all'
if they're set on page load.