This commit is contained in:
Bill 2022-08-18 00:14:43 -04:00
parent d30c067381
commit 147b299b5e

View File

@ -835,7 +835,7 @@ const useCatalogState = () =>
useEffect(() => useEffect(() =>
{ {
if(!isVisible || !rootNode || !requestedPage.current) return; if(!isVisible || !rootNode || !offersToNodes || !requestedPage.current) return;
switch(requestedPage.current.requestType) switch(requestedPage.current.requestType)
{ {
@ -868,7 +868,7 @@ const useCatalogState = () =>
requestedPage.current.resetRequest(); requestedPage.current.resetRequest();
return; return;
} }
}, [ isVisible, rootNode, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]); }, [ isVisible, rootNode, offersToNodes, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]);
useEffect(() => useEffect(() =>
{ {