Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9646c8d

Browse files
committed
Fixing e2e tests by displaying safe but unset experiments which was the previous behaviour
Signed-off-by: Danny Kopping <[email protected]>
1 parent 69b26cb commit 9646c8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ const GeneralSettingsPage: FC = () => {
1818
const safeExperiments: string[] = [];
1919
const invalidExperiments: string[] = [];
2020

21+
(safeExperimentsQuery.data?.safe ?? []).forEach(value => safeExperiments.push(value));
22+
2123
(enabledExperimentsQuery.data ?? []).forEach(function (exp) {
2224
const found = (safeExperimentsQuery.data?.safe ?? []).find((value) => {
2325
return exp === value;
2426
});
2527

26-
if (found) {
27-
safeExperiments.push(exp);
28-
} else {
28+
if (!found) {
2929
invalidExperiments.push(exp);
3030
}
3131
});

0 commit comments

Comments
 (0)