mirror of
https://github.com/zadam/trilium.git
synced 2026-01-04 06:29:52 +01:00
fix(window): Fix empty array issue during openNoteContents data migration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user