diff --git a/react_frontend/src/lib/normalizers.ts b/react_frontend/src/lib/normalizers.ts index e52eeb8..f10414b 100644 --- a/react_frontend/src/lib/normalizers.ts +++ b/react_frontend/src/lib/normalizers.ts @@ -61,6 +61,9 @@ export function normalizeGenres(raw: any[]): Genre[] { export function normalizeEntry(raw: any): Entry { return { ...raw, + // Map Sequelize camelCase property names → snake_case for frontend consistency + show_in_calendar: raw.show_in_calendar ?? raw.showInCalendar ?? true, + auto_sync: raw.auto_sync ?? raw.autoSync ?? true, // Singular → plural aliases (coerce tmdb_id to number for store comparisons) entryIds: (() => { const ids = raw.entryIds ?? raw.entryId;