Skip to content

Commit

Permalink
fix: useSideMenu observer
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Nov 6, 2023
1 parent 94fa0c1 commit bd2e4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ItaliaTheme/View/ViewUtils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const useSideMenu = (content, documentBody) => {
// }, [setObserver]);

useEffect(() => {
if (!observer && !updateSideMenuOnLoadingBlocks) return;
if (!updateSideMenuOnLoadingBlocks) return;

if (!observer) {
const obs = updateSideMenuOnLoadingBlocks
Expand Down

0 comments on commit bd2e4ab

Please sign in to comment.