File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ function SearchAutocompleteList(
357
357
}
358
358
case CONST . SEARCH . SYNTAX_FILTER_KEYS . FEED : {
359
359
const filteredFeeds = feedAutoCompleteList
360
- . filter ( ( feed ) => feed . cardFeedName . name . toLowerCase ( ) . includes ( autocompleteValue . toLowerCase ( ) ) && ! alreadyAutocompletedKeys . includes ( feed . cardFeedName . name ) )
360
+ . filter ( ( feed ) => feed . cardFeedName . name . toLowerCase ( ) . includes ( autocompleteValue . toLowerCase ( ) ) && ! alreadyAutocompletedKeys . includes ( feed . cardFeedName . name . toLowerCase ( ) ) )
361
361
. sort ( )
362
362
. slice ( 0 , 10 ) ;
363
363
return filteredFeeds . map ( ( feed ) => ( {
Original file line number Diff line number Diff line change @@ -572,10 +572,17 @@ function getFilterDisplayValue(
572
572
}
573
573
if ( filterName === CONST . SEARCH . SYNTAX_FILTER_KEYS . FEED ) {
574
574
const workspaceFeedKey = getWorkspaceCardFeedKey ( filterValue ) ;
575
- if ( cardFeedNamesWithType [ workspaceFeedKey ] . type === 'workspace' ) {
576
- return cardFeedNamesWithType [ workspaceFeedKey ] . name ;
575
+
576
+ const workspaceValue = cardFeedNamesWithType [ workspaceFeedKey ] ;
577
+ const domainValue = cardFeedNamesWithType [ filterValue ] ;
578
+
579
+ if ( workspaceValue && workspaceValue . type === 'workspace' ) {
580
+ return workspaceValue . name ;
581
+ }
582
+
583
+ if ( domainValue && domainValue . type === 'domain' ) {
584
+ return domainValue . name ;
577
585
}
578
- return cardFeedNamesWithType [ filterValue ] . name ;
579
586
}
580
587
return filterValue ;
581
588
}
You can’t perform that action at this time.
0 commit comments