Skip to content

Commit ed5ef5e

Browse files
committed
fix: allow add test plans disclosure to add test plan versions without initial reports
1 parent 5bb1446 commit ed5ef5e

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

client/components/ManageTestQueue/useAddTestPlansData.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,20 @@ export const useAddTestPlansData = isOpen => {
5656

5757
if (mainQueryData.testPlanVersions) {
5858
mainQueryData.testPlanVersions.forEach(version => {
59-
if (version.testPlanReports && version.testPlanReports.length > 0) {
60-
const testPlanDirectory = version.testPlan?.directory;
61-
if (testPlanDirectory) {
62-
allTestPlanVersions.push(
63-
normalizeVersion(version, testPlanDirectory)
64-
);
65-
}
59+
const testPlanDirectory = version.testPlan?.directory;
60+
if (testPlanDirectory) {
61+
allTestPlanVersions.push(
62+
normalizeVersion(version, testPlanDirectory)
63+
);
6664
}
6765
});
6866
} else if (mainQueryData.testPlans) {
6967
mainQueryData.testPlans.forEach(testPlan => {
7068
const versions = testPlan.testPlanVersions || [];
7169
versions.forEach(version => {
72-
if (version.testPlanReports && version.testPlanReports.length > 0) {
73-
allTestPlanVersions.push(
74-
normalizeVersion(version, testPlan.directory)
75-
);
76-
}
70+
allTestPlanVersions.push(
71+
normalizeVersion(version, testPlan.directory)
72+
);
7773
});
7874
});
7975
}

0 commit comments

Comments
 (0)