Default to empty array for 500Beta13 migration (#3461)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-21 07:19:23 +03:00
1 parent 66820a20fc
commit b7a24f4520
1 file changed
+1 -1
@@ -108,7 +108,7 @@ export default {
run(store) {
const folder = path.resolve(app.getPath("userData"), "lens-local-storage");
const oldClusters: ClusterModel[] = store.get("clusters");
const oldClusters: ClusterModel[] = store.get("clusters") ?? [];
const clusters = new Map<string, ClusterModel>();
for (const { id: oldId, ...cluster } of oldClusters) {