Skip to content

Commit 9ac6811

Browse files
fix(db): if folder index is missing, set to 0 during migration (#571)
fix #569
1 parent f46212c commit 9ac6811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/db/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function migrateJsonToSqlite(jsonData: JSONDB) {
5555
folder.createdAt,
5656
folder.updatedAt,
5757
folder.icon || null,
58-
folder.index,
58+
folder.index ?? 0,
5959
)
6060
folderIdMap[folder.id] = Number(result.lastInsertRowid)
6161
})

0 commit comments

Comments
 (0)