diff --git a/components/dashboard/src/workspaces/workspace-model.ts b/components/dashboard/src/workspaces/workspace-model.ts index 210ddb8de68f99..92b4fd21a628f0 100644 --- a/components/dashboard/src/workspaces/workspace-model.ts +++ b/components/dashboard/src/workspaces/workspace-model.ts @@ -126,11 +126,11 @@ export class WorkspaceModel implements Disposable, Partial { protected isActive(info: WorkspaceInfo): boolean { return info.workspace.pinned || - (!!info.latestInstance && info.latestInstance.status?.phase !== 'stopped'); + (!!info.latestInstance && !['stopping', 'stopped'].includes(info.latestInstance.status?.phase)); } public getAllFetchedWorkspaces(): Map { return this.workspaces; } -} \ No newline at end of file +}