Catalog: set library as active tab when viewing (#34753)

This commit is contained in:
Jack Westbrook 2021-05-26 18:19:40 +02:00 committed by GitHub
parent 515c73d8e6
commit 6f652e39cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ export const Library = ({ meta, onNavChanged, basename }: AppRootProps) => {
const styles = useStyles2(getStyles);
useEffect(() => {
onNavChanged(getCatalogNavModel(CatalogTab.Browse, basename));
onNavChanged(getCatalogNavModel(CatalogTab.Library, basename));
}, [onNavChanged, basename]);
const filteredPlugins = items.filter((plugin) => !!installedPlugins.find((_) => _.id === plugin.slug));