From 9f0af875f62e6f61d7a1ee651f102cb95b25716e Mon Sep 17 00:00:00 2001 From: yznahmad Date: Fri, 20 Jun 2025 06:14:30 +0300 Subject: [PATCH] Add scheduleregdww5sudfw side ddd --- webapp/src/components/dashboard/sidebar.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 () {