Skip to content

Commit

Permalink
Filter out undefined values in hotbar-store migration (#3489)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Malton <[email protected]>
  • Loading branch information
Nokel81 authored Jul 22, 2021
1 parent 64ac041 commit 0204eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/hotbar-store/5.0.0-beta.10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface Pre500WorkspaceStoreModel {
export default {
version: "5.0.0-beta.10",
run(store) {
const hotbars: Hotbar[] = store.get("hotbars");
const hotbars = (store.get("hotbars") as Hotbar[] ?? []).filter(Boolean);
const userDataPath = app.getPath("userData");

try {
Expand Down

0 comments on commit 0204eef

Please sign in to comment.