From 147b299b5e14c63f2b38d93fa6736c7a941b31ce Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 18 Aug 2022 00:14:43 -0400 Subject: [PATCH] Fix #252 --- src/hooks/catalog/useCatalog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/catalog/useCatalog.ts b/src/hooks/catalog/useCatalog.ts index 1cb43237..ce72d5be 100644 --- a/src/hooks/catalog/useCatalog.ts +++ b/src/hooks/catalog/useCatalog.ts @@ -835,7 +835,7 @@ const useCatalogState = () => useEffect(() => { - if(!isVisible || !rootNode || !requestedPage.current) return; + if(!isVisible || !rootNode || !offersToNodes || !requestedPage.current) return; switch(requestedPage.current.requestType) { @@ -868,7 +868,7 @@ const useCatalogState = () => requestedPage.current.resetRequest(); return; } - }, [ isVisible, rootNode, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]); + }, [ isVisible, rootNode, offersToNodes, currentPage, activateNode, openPageById, openPageByOfferId, openPageByName ]); useEffect(() => {