Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8836f25

Browse files
committed
Fixing e2e tests by displaying safe but unset experiments which was the previous behaviour
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent69b26cb commit8836f25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

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

21+
(safeExperimentsQuery.data?.safe??[]).forEach((value)=>
22+
safeExperiments.push(value),
23+
);
24+
2125
(enabledExperimentsQuery.data??[]).forEach(function(exp){
2226
constfound=(safeExperimentsQuery.data?.safe??[]).find((value)=>{
2327
returnexp===value;
2428
});
2529

26-
if(found){
27-
safeExperiments.push(exp);
28-
}else{
30+
if(!found){
2931
invalidExperiments.push(exp);
3032
}
3133
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp