Fix clusters not being defined (#3392)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-15 12:59:43 -04:00
1 parent f9635504f9
commit 873a165a60
1 file changed
+1 -1
@@ -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)) {