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 24c7552 commit b711018Copy full SHA for b711018
site/src/pages/WorkspacePage/WorkspaceNotifications.tsx
@@ -51,10 +51,10 @@ export const WorkspaceNotifications: FC<WorkspaceNotificationsProps> = (
51
const notifications: Notification[] = [];
52
53
// Outdated
54
- const canAutostartResponse = useQuery(
55
- workspaceResolveAutostart(workspace.id),
56
- );
57
- const canAutostart = !canAutostartResponse.data?.parameter_mismatch ?? false;
+ const canAutostartQuery = useQuery(workspaceResolveAutostart(workspace.id));
+ const isParameterMismatch =
+ canAutostartQuery.data?.parameter_mismatch ?? false;
+ const canAutostart = !isParameterMismatch;
58
const updateRequired =
59
(workspace.template_require_active_version ||
60
workspace.automatic_updates === "always") &&
0 commit comments