From b50562496da9ec2232253a1f14c41486ce34c3a0 Mon Sep 17 00:00:00 2001 From: Tsaqif Date: Sat, 21 Oct 2023 08:52:08 +0700 Subject: [PATCH 1/3] add check condition in shouldReportBeInOptionList Signed-off-by: Tsaqif --- src/libs/ReportUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 4e351d2dc5e3..f949cf7a594a 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -3152,6 +3152,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, !report || !report.reportID || !report.type || + report.reportName === undefined || report.isHidden || (report.participantAccountIDs && report.participantAccountIDs.length === 0 && From a31376288cc03747ece8db5b488923ac88b74d69 Mon Sep 17 00:00:00 2001 From: Tsaqif Date: Wed, 25 Oct 2023 05:39:32 +0700 Subject: [PATCH 2/3] change reportName condition check Signed-off-by: Tsaqif --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index f949cf7a594a..87a47a30a3a7 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -3152,7 +3152,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, !report || !report.reportID || !report.type || - report.reportName === undefined || + !report.reportName || report.isHidden || (report.participantAccountIDs && report.participantAccountIDs.length === 0 && From 27e2efbfd7ba64e5ee81f11789f0615b540d7ec3 Mon Sep 17 00:00:00 2001 From: Tsaqif Date: Wed, 25 Oct 2023 12:30:13 +0700 Subject: [PATCH 3/3] revert check condition of reportName Signed-off-by: Tsaqif --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 87a47a30a3a7..f949cf7a594a 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -3152,7 +3152,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, !report || !report.reportID || !report.type || - !report.reportName || + report.reportName === undefined || report.isHidden || (report.participantAccountIDs && report.participantAccountIDs.length === 0 &&