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

Fix clusters not being defined

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-15 11:57:57 -04:00
parent 07fbf74100
commit 25dc3a4190

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)) {