mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Fix #252
This commit is contained in:
parent
d30c067381
commit
147b299b5e
@ -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(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user