diff --git a/frontend/app/components/BugFinder/SessionList/SessionListHeader.js b/frontend/app/components/BugFinder/SessionList/SessionListHeader.js index 7707424b0..a178c5990 100644 --- a/frontend/app/components/BugFinder/SessionList/SessionListHeader.js +++ b/frontend/app/components/BugFinder/SessionList/SessionListHeader.js @@ -7,57 +7,50 @@ import { applyFilter } from 'Duck/search'; import Period from 'Types/app/period'; const sortOptionsMap = { - 'startTs-desc': 'Newest', - 'startTs-asc': 'Oldest', - 'eventsCount-asc': 'Events Ascending', - 'eventsCount-desc': 'Events Descending', + 'startTs-desc': 'Newest', + 'startTs-asc': 'Oldest', + 'eventsCount-asc': 'Events Ascending', + 'eventsCount-desc': 'Events Descending', }; -const sortOptions = Object.entries(sortOptionsMap) - .map(([ value, label ]) => ({ value, label })); +const sortOptions = Object.entries(sortOptionsMap).map(([value, label]) => ({ value, label })); +function SessionListHeader({ activeTab, count, applyFilter, filter }) { + const { startDate, endDate, rangeValue } = filter; + const period = new Period({ start: startDate, end: endDate, rangeName: rangeValue }); -function SessionListHeader({ - activeTab, - count, - applyFilter, - filter, -}) { - const { startDate, endDate, rangeValue } = filter; - const period = new Period({ start: startDate, end: endDate, rangeName: rangeValue }); - - const onDateChange = (e) => { - const dateValues = e.toJSON(); - applyFilter(dateValues); - }; - return ( -