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

Commit9646c8d

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 commit9646c8d

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
constsafeExperiments:string[]=[];
1919
constinvalidExperiments:string[]=[];
2020

21+
(safeExperimentsQuery.data?.safe??[]).forEach(value=>safeExperiments.push(value));
22+
2123
(enabledExperimentsQuery.data??[]).forEach(function(exp){
2224
constfound=(safeExperimentsQuery.data?.safe??[]).find((value)=>{
2325
returnexp===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)

[8]ページ先頭

©2009-2025 Movatter.jp