From 8fa70553a541f65ba2fd2e069b18d7be4e62cc0c Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Thu, 6 Jan 2022 13:06:43 +0530 Subject: [PATCH] remove dup componentDidMount --- .../volto/components/theme/Navigation/Navigation.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/customizations/volto/components/theme/Navigation/Navigation.jsx b/src/customizations/volto/components/theme/Navigation/Navigation.jsx index b0c76a2..c6014ed 100644 --- a/src/customizations/volto/components/theme/Navigation/Navigation.jsx +++ b/src/customizations/volto/components/theme/Navigation/Navigation.jsx @@ -74,16 +74,6 @@ class Navigation extends Component { }; } - /** - * Component will mount - * @method componentWillMount - * @returns {undefined}getBasePath - */ - componentDidMount() { - // this.props.getNavigation(getBaseUrl(this.props.pathname), 2); - this.closeMobileMenu(); - } - /** * Component will receive props * @method componentWillReceiveProps @@ -120,6 +110,7 @@ class Navigation extends Component { componentDidMount() { document.addEventListener('mousedown', this.handleClickOutside, false); + this.closeMobileMenu(); } componentWillUnmount() {