diff --git a/src/migrations/hotbar-store/5.0.0-beta.10.ts b/src/migrations/hotbar-store/5.0.0-beta.10.ts index 0bf780b2019d..3dd635effc34 100644 --- a/src/migrations/hotbar-store/5.0.0-beta.10.ts +++ b/src/migrations/hotbar-store/5.0.0-beta.10.ts @@ -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 {