diff --git a/webapp/src/components/dashboard/sidebar.tsx b/webapp/src/components/dashboard/sidebar.tsx index 08f1ef2..9a4251c 100644 --- a/webapp/src/components/dashboard/sidebar.tsx +++ b/webapp/src/components/dashboard/sidebar.tsx @@ -23,7 +23,12 @@ export default function Sidebar () { // get states const sidebarState = useAppSelector((state) => state.sidebarReducer.value.state); const sidebarItems = useAppSelector((state) => state.sidebarReducer.value.items); - const appGeneralSettings = useAppSelector((state) => state.settingsReducer.value.appGeneralSettings) + const appGeneralSettings = useAppSelector((state) => state.settingsReducer.value.appGeneralSettings) || { + showLogo: true, + logo: '', + appName: '', + appNameEN: '' + }; // handle sidebar menus states const [currentMenu, setCurrentMenu] = useState(''); const toggleMenu = (value: string) => { @@ -43,8 +48,13 @@ export default function Sidebar () {