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 1e407fb commit f6ac668Copy full SHA for f6ac668
site/src/pages/CreateWorkspacePage/CreateWorkspaceExperimentRouter.tsx
@@ -47,7 +47,7 @@ const CreateWorkspaceExperimentRouter: FC = () => {
47
if (optOutQuery.isLoading) {
48
return <Loader />;
49
}
50
- if (!optOutQuery.data) {
+ if (optOutQuery.isError) {
51
return <ErrorAlert error={optOutQuery.error} />;
52
53
@@ -64,7 +64,7 @@ const CreateWorkspaceExperimentRouter: FC = () => {
64
};
65
return (
66
<ExperimentalFormContext.Provider value={{ toggleOptedOut }}>
67
- {optOutQuery.data.optedOut ? (
+ {optOutQuery.data?.optedOut ? (
68
<CreateWorkspacePage />
69
) : (
70
<CreateWorkspacePageExperimental />
0 commit comments