mirror of
https://github.com/zadam/trilium.git
synced 2026-01-08 15:44:25 +01:00
fix(window): Fix empty array issue during openNoteContents data migration
This commit is contained in:
parent
19a75acf3f
commit
d0a22bc517
@ -18,8 +18,13 @@ export default () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Already in new format, skip
|
// Already in new format (array + windowId), skip
|
||||||
if (parsed[0].windowId) {
|
if (
|
||||||
|
Array.isArray(parsed) &&
|
||||||
|
parsed.length > 0 &&
|
||||||
|
typeof parsed[0] === "object" &&
|
||||||
|
parsed[0].windowId
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user