diff --git a/src/routes/Library/useLibrary.js b/src/routes/Library/useLibrary.js index 62a6c9cf1..f52cb076d 100644 --- a/src/routes/Library/useLibrary.js +++ b/src/routes/Library/useLibrary.js @@ -53,7 +53,7 @@ const libraryItems = [ const useLibrary = (type, sort) => { const items = React.useMemo(() => { - return libraryItems.filter(item => item.type === type); + return libraryItems.filter(item => typeof type === 'string' && item.type === type); }, [type, sort]); const onSelect = React.useCallback((event) => { const { name, value } = event.currentTarget.dataset;