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

Fix clusters not being defined (#3392)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-15 12:59:43 -04:00 committed by GitHub
parent f9635504f9
commit 873a165a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ export default {
workspaces.set(id, name);
}
const clusters: ClusterModel[] = store.get("clusters");
const clusters: ClusterModel[] = store.get("clusters") ?? [];
for (const cluster of clusters) {
if (cluster.workspace && workspaces.has(cluster.workspace)) {