From f7d3920d89e3d9aad1ccce2e10020afab3e38d84 Mon Sep 17 00:00:00 2001 From: syam babu Date: Thu, 16 Nov 2023 14:45:11 +0530 Subject: [PATCH] bugfix: reverting changes made for 752 --- src/components/Dropdown/UserProfile/UserProfileDropDown.jsx | 1 + src/components/Sidebar/Main/Sidebar.jsx | 1 - src/pages/Dashboard/Events/Events.jsx | 5 ----- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Dropdown/UserProfile/UserProfileDropDown.jsx b/src/components/Dropdown/UserProfile/UserProfileDropDown.jsx index 4a9b89df..0a485e66 100644 --- a/src/components/Dropdown/UserProfile/UserProfileDropDown.jsx +++ b/src/components/Dropdown/UserProfile/UserProfileDropDown.jsx @@ -39,6 +39,7 @@ const UserProfileDropDown = () => { window.open(`${process.env.REACT_APP_HELP_FR_URL}`, '_blank', 'noopener,noreferrer'); break; case 'logOut': + sessionStorage.clear(); navigate(PathName.Login, { state: { previousPath: 'logout' } }); break; default: diff --git a/src/components/Sidebar/Main/Sidebar.jsx b/src/components/Sidebar/Main/Sidebar.jsx index 0beb223e..5b3c38ac 100644 --- a/src/components/Sidebar/Main/Sidebar.jsx +++ b/src/components/Sidebar/Main/Sidebar.jsx @@ -72,7 +72,6 @@ function Sidebar(props) { interfaceLanguage: user?.interfaceLanguage?.toLowerCase(), calendarContentLanguage: calendarContentLanguage, }); - sessionStorage.clear(); setCalendarItem(selectedCalendar(currentCalendarData?.id, currentCalendarData?.image?.uri, calendarLabel)); }, [currentCalendarData]); diff --git a/src/pages/Dashboard/Events/Events.jsx b/src/pages/Dashboard/Events/Events.jsx index 4c833383..ebd43e02 100644 --- a/src/pages/Dashboard/Events/Events.jsx +++ b/src/pages/Dashboard/Events/Events.jsx @@ -144,10 +144,6 @@ function Events() { const calendarContentLanguage = currentCalendarData?.contentLanguage; - useEffect(() => { - filterClearHandler(); // when calendar data changes filters are reset - }, [currentCalendarData]); - useEffect(() => { let query = new URLSearchParams(); let sortQuery = new URLSearchParams(); @@ -264,7 +260,6 @@ function Events() { }; const onFilterChange = (values, filterType) => { - console.log(values); if (filterType === filterTypes.PUBLICATION) setFilter({ ...filter,