mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Loading state in the workspaces page (#2967)
This commit is contained in:
@@ -32,7 +32,7 @@ const WorkspacesPage: FC = () => {
|
||||
|
||||
<WorkspacesPageView
|
||||
filter={workspacesState.context.filter}
|
||||
isLoading={workspacesState.hasTag("loading")}
|
||||
isLoading={!workspaceRefs}
|
||||
workspaceRefs={workspaceRefs}
|
||||
onFilter={(query) => {
|
||||
setSearchParams({ filter: query })
|
||||
|
||||
@@ -218,9 +218,7 @@ export const workspacesMachine = createMachine(
|
||||
},
|
||||
initial: "idle",
|
||||
states: {
|
||||
idle: {
|
||||
tags: ["loading"],
|
||||
},
|
||||
idle: {},
|
||||
gettingWorkspaces: {
|
||||
entry: "clearGetWorkspacesError",
|
||||
invoke: {
|
||||
|
||||
Reference in New Issue
Block a user