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

Commitfd6981e

Browse files
authored
fix: fix flashing error dialog in the create workspace page (#18180)
This PR which updated react-query to 5.77.0 introduced an issue on thecreate workspace page where the error dialog would be briefly displayedwhile the page is loading.#18039The issue is that there is a moment when `optOutQuery.isLoading` isfalse and `optOutQuery.data` is undefined causing the ErrorAlert todisplay.
1 parent1d27d4f commitfd6981e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎site/src/pages/CreateWorkspacePage/CreateWorkspaceExperimentRouter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ const CreateWorkspaceExperimentRouter: FC = () => {
4444
});
4545

4646
if(dynamicParametersEnabled){
47-
if(optOutQuery.isLoading){
48-
return<Loader/>;
47+
if(optOutQuery.isError){
48+
return<ErrorAlerterror={optOutQuery.error}/>;
4949
}
5050
if(!optOutQuery.data){
51-
return<ErrorAlerterror={optOutQuery.error}/>;
51+
return<Loader/>;
5252
}
5353

5454
consttoggleOptedOut=()=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp