diff --git a/src/routes/Library/useLibrary.js b/src/routes/Library/useLibrary.js index f102d8f84..f8023d9b6 100644 --- a/src/routes/Library/useLibrary.js +++ b/src/routes/Library/useLibrary.js @@ -6,7 +6,7 @@ const DEFAULT_TYPE = 'movie'; const useLibrary = (urlParams) => { const { core } = useServices(); - const [library, setLibrary] = React.useState([[], []]); + const [library, setLibrary] = React.useState([[], null]); React.useEffect(() => { const type = typeof urlParams.type === 'string' && urlParams.type.length > 0 ? urlParams.type : DEFAULT_TYPE; const onNewState = () => {