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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-22 11:42:44 -04:00
parent 64ac04186b
commit 43e97079de

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 {