fix: reset audiobook progress and clear cached progress in UI (#2641) (#2711)

This commit is contained in:
ACX
2026-02-12 08:21:05 -07:00
committed by GitHub
parent 120334eb28
commit f8f448a19b
3 changed files with 19 additions and 1 deletions
@@ -163,8 +163,13 @@ export class BookPatchService {
const updatedBooks = (currentState.books || []).map(book => {
const response = responses.find(r => r.bookId === book.id);
if (response) {
const progressReset: Partial<Book> =
type === 'KOREADER' ? {koreaderProgress: undefined} :
type === 'KOBO' ? {koboProgress: undefined} :
{epubProgress: undefined, pdfProgress: undefined, cbxProgress: undefined, audiobookProgress: undefined};
return {
...book,
...progressReset,
readStatus: response.readStatus,
readStatusModifiedTime: response.readStatusModifiedTime,
dateFinished: response.dateFinished