Fix issue where sync fails if using older sync backend

This commit is contained in:
MaltronCraft Network 2025-10-10 10:14:43 -07:00 committed by GitHub
parent bf774106ff
commit 2884c0a6f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ export function bookmarkResponsesToEntries(responses: BookmarkResponse[]) {
const entries = responses.map((bookmark) => {
const item: BookmarkMediaItem = {
...bookmark.meta,
group: bookmark.group.length > 0 ? bookmark.group : undefined,
group: bookmark.group?.length > 0 ? bookmark.group : undefined,
favoriteEpisodes: bookmark.favoriteEpisodes,
updatedAt: new Date(bookmark.updatedAt).getTime(),
};