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

Filter out undefined values in hotbar-store migration (#3489)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-22 14:13:32 -04:00 committed by GitHub
parent 64ac04186b
commit 0204eef848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ interface Pre500WorkspaceStoreModel {
export default { export default {
version: "5.0.0-beta.10", version: "5.0.0-beta.10",
run(store) { run(store) {
const hotbars: Hotbar[] = store.get("hotbars"); const hotbars = (store.get("hotbars") as Hotbar[] ?? []).filter(Boolean);
const userDataPath = app.getPath("userData"); const userDataPath = app.getPath("userData");
try { try {