refactor: Remove unused volume fields and improve error handling in novel and chapter management
Build and Push Reader Image / docker (push) Successful in 40s

This commit is contained in:
2026-05-05 01:09:12 +07:00
parent 9005cfa5ef
commit 3cc0ea1b9f
4 changed files with 34 additions and 63 deletions
+2 -10
View File
@@ -341,15 +341,7 @@ export function NovelClient() {
}
const fetchSeries = async () => {
try {
const res = await fetch("/api/mod/series")
if (res.ok) {
const data = await res.json()
setSeriesList(data)
}
} catch {
console.error("Failed to fetch series")
}
setSeriesList([])
}
useEffect(() => {
@@ -1250,7 +1242,7 @@ export function NovelClient() {
})
const data = await res.json()
if (!res.ok) throw new Error(data.error || "Lỗi cập nhật")
if (!res.ok) throw new Error(data?.detail || data?.error || "Lỗi cập nhật")
toast.success("Cập nhật truyện thành công!")
setOpenEdit(false)