Skip to content

Commit 0212933

Browse files
fix: Loading state in the workspaces page (#2967)
1 parent 0f5f30b commit 0212933

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

site/src/pages/WorkspacesPage/WorkspacesPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const WorkspacesPage: FC = () => {
3232

3333
<WorkspacesPageView
3434
filter={workspacesState.context.filter}
35-
isLoading={workspacesState.hasTag("loading")}
35+
isLoading={!workspaceRefs}
3636
workspaceRefs={workspaceRefs}
3737
onFilter={(query) => {
3838
setSearchParams({ filter: query })

site/src/xServices/workspaces/workspacesXService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@ export const workspacesMachine = createMachine(
218218
},
219219
initial: "idle",
220220
states: {
221-
idle: {
222-
tags: ["loading"],
223-
},
221+
idle: {},
224222
gettingWorkspaces: {
225223
entry: "clearGetWorkspacesError",
226224
invoke: {

0 commit comments

Comments
 (0)