Skip to content

Commit f68b4ea

Browse files
Filter disabled report field values out of the Recent section
Co-authored-by: Sahil <thesahindia@users.noreply.github.com>
1 parent cc98ee1 commit f68b4ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/ReportFieldOptionsListUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function getReportFieldOptionsSection({
5151
return reportFieldOptionsSections;
5252
}
5353

54-
const filteredRecentlyUsedOptions = recentlyUsedOptions.filter((o) => !selectedKeySet.has(o));
54+
const enabledOptionSet = new Set(options);
55+
const filteredRecentlyUsedOptions = recentlyUsedOptions.filter((o) => !selectedKeySet.has(o) && enabledOptionSet.has(o));
5556
const filteredOptions = options.filter((o) => !selectedKeySet.has(o));
5657

5758
if (selectedOptionKeys.length) {

0 commit comments

Comments
 (0)