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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-22 14:13:32 -04:00
1 parent 64ac04186b
commit 0204eef848
1 file changed
+1 -1
+1 -1
View File
@@ -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 {