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:
parent
64ac04186b
commit
0204eef848
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user