diff --git a/components/dashboard/src/workspaces/workspace-model.ts b/components/dashboard/src/workspaces/workspace-model.ts index e40540d864b9e4..d38066e692d5f7 100644 --- a/components/dashboard/src/workspaces/workspace-model.ts +++ b/components/dashboard/src/workspaces/workspace-model.ts @@ -126,7 +126,7 @@ export class WorkspaceModel implements Disposable, Partial { protected isActive(info: WorkspaceInfo): boolean { return info.workspace.pinned || - info.latestInstance?.status?.phase !== 'stopped'; + (!!info.latestInstance && info.latestInstance.status?.phase !== 'stopped'); } public getAllFetchedWorkspaces(): Map {