We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b26cb commit 9646c8dCopy full SHA for 9646c8d
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPage.tsx
@@ -18,14 +18,14 @@ const GeneralSettingsPage: FC = () => {
18
const safeExperiments: string[] = [];
19
const invalidExperiments: string[] = [];
20
21
+ (safeExperimentsQuery.data?.safe ?? []).forEach(value => safeExperiments.push(value));
22
+
23
(enabledExperimentsQuery.data ?? []).forEach(function (exp) {
24
const found = (safeExperimentsQuery.data?.safe ?? []).find((value) => {
25
return exp === value;
26
});
27
- if (found) {
- safeExperiments.push(exp);
28
- } else {
+ if (!found) {
29
invalidExperiments.push(exp);
30
}
31
0 commit comments