File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
site/src/pages/CreateWorkspacePage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ const CreateWorkspaceExperimentRouter: FC = () => {
44
44
} ) ;
45
45
46
46
if ( dynamicParametersEnabled ) {
47
- if ( optOutQuery . isLoading ) {
48
- return < Loader /> ;
49
- }
50
47
if ( optOutQuery . isError ) {
51
48
return < ErrorAlert error = { optOutQuery . error } /> ;
52
49
}
50
+ if ( ! optOutQuery . data ) {
51
+ return < Loader /> ;
52
+ }
53
53
54
54
const toggleOptedOut = ( ) => {
55
55
const key = optOutKey ( optOutQuery . data ?. templateId ?? "" ) ;
@@ -64,7 +64,7 @@ const CreateWorkspaceExperimentRouter: FC = () => {
64
64
} ;
65
65
return (
66
66
< ExperimentalFormContext . Provider value = { { toggleOptedOut } } >
67
- { optOutQuery . data ? .optedOut ? (
67
+ { optOutQuery . data . optedOut ? (
68
68
< CreateWorkspacePage />
69
69
) : (
70
70
< CreateWorkspacePageExperimental />
You can’t perform that action at this time.
0 commit comments