fix: update metadata viewer in real time after progress reset

This commit is contained in:
ACX
2026-02-13 15:12:17 -07:00
committed by acx10
parent 81960f820e
commit 3e44ee7d92

View File

@@ -107,7 +107,7 @@ export class BookMetadataCenterComponent implements OnInit, OnDestroy {
this.bookService.bookState$.pipe(
map(state => state.books?.find(b => b.id === bookId)),
filter((book): book is Book => !!book && !!book.metadata),
distinctUntilChanged((a, b) => a.id === b.id && a.metadata === b.metadata),
distinctUntilChanged(),
switchMap(book =>
this.bookService.getBookByIdFromAPI(book.id, true)
)