From bd2e4ab451d4bc5a05b2673cdbf4a2b05038f4b4 Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Mon, 6 Nov 2023 10:01:01 +0100 Subject: [PATCH] fix: useSideMenu observer --- src/components/ItaliaTheme/View/ViewUtils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ItaliaTheme/View/ViewUtils.jsx b/src/components/ItaliaTheme/View/ViewUtils.jsx index 31299f7d8..ae4d15ce8 100644 --- a/src/components/ItaliaTheme/View/ViewUtils.jsx +++ b/src/components/ItaliaTheme/View/ViewUtils.jsx @@ -63,7 +63,7 @@ export const useSideMenu = (content, documentBody) => { // }, [setObserver]); useEffect(() => { - if (!observer && !updateSideMenuOnLoadingBlocks) return; + if (!updateSideMenuOnLoadingBlocks) return; if (!observer) { const obs = updateSideMenuOnLoadingBlocks