File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3994,14 +3994,10 @@ function getGroupByOptions(translate: LocalizedTranslate) {
39943994}
39953995
39963996function getGroupBySections ( translate : LocalizedTranslate ) : GroupBySection [ ] {
3997- const groupByOptions = getGroupByOptions ( translate ) ;
3998- const optionsByValue = new Map ( groupByOptions . map ( ( option ) => [ option . value , option ] ) ) ;
3999- const getOption = ( groupBy : SearchGroupBy ) : SingleSelectItem < SearchGroupBy > =>
4000- optionsByValue . get ( groupBy ) ?? {
4001- text : translate ( `search.filters.groupBy.${ groupBy } ` ) ,
4002- value : groupBy ,
4003- } ;
4004-
3997+ const getOption = ( groupBy : SearchGroupBy ) : SingleSelectItem < SearchGroupBy > => ( {
3998+ text : translate ( `search.filters.groupBy.${ groupBy } ` ) ,
3999+ value : groupBy ,
4000+ } ) ;
40054001 return [
40064002 {
40074003 options : [ getOption ( CONST . SEARCH . GROUP_BY . FROM ) , getOption ( CONST . SEARCH . GROUP_BY . CARD ) ] ,
You can’t perform that action at this time.
0 commit comments