mirror of
https://github.com/coder/coder.git
synced 2026-10-16 06:37:58 +08:00
fix: display build timings when all timings are loaded (#15728)
- [Refetch timings until script timings are present](https://github.com/coder/coder/commit/2181bec72b5334e5e15dc575d2234860be02920b) - [Stay on loading state when agent script timings are empty](https://github.com/coder/coder/commit/b16fad165c8733c60150b0dfce5df73ab2669e36) Fix https://github.com/coder/coder/issues/15273
This commit is contained in:
@@ -58,17 +58,9 @@ export const infiniteWorkspaceBuilds = (
|
||||
};
|
||||
|
||||
// We use readyAgentsCount to invalidate the query when an agent connects
|
||||
export const workspaceBuildTimings = (
|
||||
workspaceBuildId: string,
|
||||
readyAgentsCount: number,
|
||||
) => {
|
||||
export const workspaceBuildTimings = (workspaceBuildId: string) => {
|
||||
return {
|
||||
queryKey: [
|
||||
"workspaceBuilds",
|
||||
workspaceBuildId,
|
||||
"timings",
|
||||
{ readyAgentsCount },
|
||||
],
|
||||
queryKey: ["workspaceBuilds", workspaceBuildId, "timings"],
|
||||
queryFn: () => API.workspaceBuildTimings(workspaceBuildId),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user