mirror of
https://github.com/zadam/trilium.git
synced 2025-12-31 03:34:23 +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;
|
||||
}
|
||||
|
||||
// Already in new format, skip
|
||||
if (parsed[0].windowId) {
|
||||
// Already in new format (array + windowId), skip
|
||||
if (
|
||||
Array.isArray(parsed) &&
|
||||
parsed.length > 0 &&
|
||||
typeof parsed[0] === "object" &&
|
||||
parsed[0].windowId
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user