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 8d205e61..0ce25581 100644 --- a/src/pages/Dashboard/Events/Events.jsx +++ b/src/pages/Dashboard/Events/Events.jsx @@ -179,10 +179,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(); @@ -324,7 +320,6 @@ function Events() { }; const onFilterChange = (values, filterType) => { - console.log(values); if (filterType === filterTypes.PUBLICATION) setFilter({ ...filter,