fix: sync server-rendered watchlist state to client

This commit is contained in:
2026-05-26 20:29:19 +02:00
parent 749a275dc0
commit 50159286b4
5 changed files with 46 additions and 4 deletions

View File

@@ -316,8 +316,8 @@ func (h *AnimeHandler) HandleScheduleSection(c *gin.Context) {
watchlistMap := h.watchlistMapForAnimes(c.Request.Context(), userID, animes)
c.HTML(http.StatusOK, "schedule.gohtml", gin.H{
"_fragment": "schedule_section",
"Animes": animes,
"_fragment": "schedule_section",
"Animes": animes,
"WatchlistMap": watchlistMap,
})
}