Skip to content

Commit

Permalink
Merge pull request #785 from culturecreates/bugfix/issue-752
Browse files Browse the repository at this point in the history
bugfix: reverting changes made for 752
  • Loading branch information
AbhishekPAnil authored Nov 16, 2023
2 parents 8cbb28d + f99a4e4 commit e09748e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion src/components/Sidebar/Main/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function Sidebar(props) {
interfaceLanguage: user?.interfaceLanguage?.toLowerCase(),
calendarContentLanguage: calendarContentLanguage,
});
sessionStorage.clear();
setCalendarItem(selectedCalendar(currentCalendarData?.id, currentCalendarData?.image?.uri, calendarLabel));
}, [currentCalendarData]);

Expand Down
5 changes: 0 additions & 5 deletions src/pages/Dashboard/Events/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -324,7 +320,6 @@ function Events() {
};

const onFilterChange = (values, filterType) => {
console.log(values);
if (filterType === filterTypes.PUBLICATION)
setFilter({
...filter,
Expand Down

0 comments on commit e09748e

Please sign in to comment.