Thanks to visit codestin.com Credit goes to github.com
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 8836f25Copy full SHA for 8836f25
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPage.tsx
@@ -18,14 +18,16 @@ const GeneralSettingsPage: FC = () => {
18
const safeExperiments: string[] = [];
19
const invalidExperiments: string[] = [];
20
21
+ (safeExperimentsQuery.data?.safe ?? []).forEach((value) =>
22
+ safeExperiments.push(value),
23
+ );
24
+
25
(enabledExperimentsQuery.data ?? []).forEach(function (exp) {
26
const found = (safeExperimentsQuery.data?.safe ?? []).find((value) => {
27
return exp === value;
28
});
29
- if (found) {
- safeExperiments.push(exp);
- } else {
30
+ if (!found) {
31
invalidExperiments.push(exp);
32
}
33
0 commit comments