We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c6369 commit 3502a22Copy full SHA for 3502a22
site/src/api/queries/workspaces.ts
@@ -277,7 +277,10 @@ const updateWorkspaceBuild = async (
277
build.workspace_owner_name,
278
build.workspace_name,
279
);
280
- const previousData = queryClient.getQueryData(workspaceKey) as Workspace;
+ const previousData = queryClient.getQueryData<Workspace>(workspaceKey);
281
+ if (!previousData) {
282
+ return;
283
+ }
284
285
// Check if the build returned is newer than the previous build that could be
286
// updated from web socket
0 commit comments