Skip to content

Commit

Permalink
Merge pull request #52993 from bernhardoj/fix/52924-empty-selected-ro…
Browse files Browse the repository at this point in the history
…w-in-search-in-filter

Fix empty selected row in search "In" filter
  • Loading branch information
luacmartins authored Nov 25, 2024
2 parents 98df9b5 + 47162b5 commit f4cccda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libs/SearchQueryUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function buildFilterFormValuesFromQuery(
filtersForm[filterKey] = filterValues.filter((tax) => allTaxRates.has(tax));
}
if (filterKey === CONST.SEARCH.SYNTAX_FILTER_KEYS.IN) {
filtersForm[filterKey] = filterValues.filter((id) => reports?.[`${ONYXKEYS.COLLECTION.REPORT}${id}`]);
filtersForm[filterKey] = filterValues.filter((id) => reports?.[`${ONYXKEYS.COLLECTION.REPORT}${id}`]?.reportID);
}
if (filterKey === CONST.SEARCH.SYNTAX_FILTER_KEYS.FROM || filterKey === CONST.SEARCH.SYNTAX_FILTER_KEYS.TO) {
filtersForm[filterKey] = filterValues.filter((id) => personalDetails[id]);
Expand Down
5 changes: 1 addition & 4 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2920,10 +2920,7 @@ function leaveGroupChat(reportID: string) {
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`,
value: Object.keys(report).reduce<Record<string, null>>((acc, key) => {
acc[key] = null;
return acc;
}, {}),
value: null,
},
];

Expand Down

0 comments on commit f4cccda

Please sign in to comment.