Skip to content

Commit

Permalink
[dashboard] Don't show workspaces with zero instances as 'active'
Browse files Browse the repository at this point in the history
Fixes #3780
  • Loading branch information
jankeromnes committed Apr 9, 2021
1 parent 5a7da93 commit 269c9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dashboard/src/workspaces/workspace-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class WorkspaceModel implements Disposable, Partial<GitpodClient> {

protected isActive(info: WorkspaceInfo): boolean {
return info.workspace.pinned ||
info.latestInstance?.status?.phase !== 'stopped';
(!!info.latestInstance && info.latestInstance.status?.phase !== 'stopped');
}

public getAllFetchedWorkspaces(): Map<string, WorkspaceInfo> {
Expand Down

0 comments on commit 269c9dc

Please sign in to comment.