mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Default to empty array for 500Beta13 migration (#3461)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
66820a20fc
commit
b7a24f4520
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user