Skip to content

Commit

Permalink
Fix displaying search header title
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Aug 5, 2024
1 parent 6fd62f2 commit ede9d23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ function buildFilterString(filterName: string, queryFilters: QueryFilter[]) {
queryFilters.forEach((queryFilter, index) => {
// If the previous queryFilter has the same operator (this rule applies only to eq and neq operators) then append the current value
if ((queryFilter.operator === 'eq' && queryFilters[index - 1]?.operator === 'eq') || (queryFilter.operator === 'neq' && queryFilters[index - 1]?.operator === 'neq')) {
filterValueString += `,${filterName}:${queryFilter.value}`;
filterValueString += `,${sanitizeString(queryFilter.value.toString())}`;
} else {
filterValueString += ` ${filterName}${operatorToSignMap[queryFilter.operator]}${queryFilter.value}`;
}
Expand Down
14 changes: 6 additions & 8 deletions src/pages/Search/SearchStatusMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ function SearchStatusMenuNarrow({statusMenuItems, activeItemIndex, title}: Searc
src={menuIcon}
fill={theme.icon}
/>
<View style={styles.flex1}>
<Text
numberOfLines={1}
style={[styles.textStrong]}
>
{menuTitle}
</Text>
</View>
<Text
numberOfLines={1}
style={[styles.textStrong, styles.flexShrink1]}
>
{menuTitle}
</Text>
<Icon
src={Expensicons.DownArrow}
fill={theme.icon}
Expand Down

0 comments on commit ede9d23

Please sign in to comment.