initial state changed

This commit is contained in:
svetlagasheva 2019-11-15 10:00:43 +02:00
parent 0f5e6e6798
commit 4326f23db6

View file

@ -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 = () => {