From 4326f23db6a9d11dafb40833d047e15e1a1113a2 Mon Sep 17 00:00:00 2001 From: svetlagasheva Date: Fri, 15 Nov 2019 10:00:43 +0200 Subject: [PATCH] initial state changed --- src/routes/Library/useLibrary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = () => {