From e84c8015eb000943a0e744d4dc446dbca2ca4919 Mon Sep 17 00:00:00 2001 From: Mihai Macaneata Date: Thu, 11 Jun 2020 09:57:25 +0300 Subject: [PATCH] Fix ssr for navigation --- .../volto/components/theme/Navigation/Navigation.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/customizations/volto/components/theme/Navigation/Navigation.jsx b/src/customizations/volto/components/theme/Navigation/Navigation.jsx index ae1b521b..9e3e70fc 100644 --- a/src/customizations/volto/components/theme/Navigation/Navigation.jsx +++ b/src/customizations/volto/components/theme/Navigation/Navigation.jsx @@ -56,7 +56,7 @@ const Navigation = props => { document.querySelector('.page-document-sidebar .tabs'), ); } - },[document.querySelector('.page-document-sidebar .tabs'), document.querySelector('.tabs.section-tabs')]); + },[__CLIENT__ && document.querySelector('.page-document-sidebar .tabs'), __CLIENT__ && document.querySelector('.tabs.section-tabs')]); const isActive = url => {