1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use entity.status.phase when updating cluster state

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-10-11 17:41:04 +03:00
parent b2b3c44695
commit c92c97c7ce
No known key found for this signature in database
GPG Key ID: 54B44603D251B788

View File

@ -160,6 +160,10 @@ export class ClusterManager extends Singleton {
return "connecting"; return "connecting";
} }
if (entity?.status?.phase) {
return entity.status.phase;
}
return "disconnected"; return "disconnected";
})(); })();