Skip to content

Commit

Permalink
fix empty report is included as the selected report
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 23, 2024
1 parent d844091 commit 47162b5
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 47162b5

Please sign in to comment.