fix: update metadata viewer in real time after progress reset
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ export class BookMetadataCenterComponent implements OnInit, OnDestroy {
|
|||||||
this.bookService.bookState$.pipe(
|
this.bookService.bookState$.pipe(
|
||||||
map(state => state.books?.find(b => b.id === bookId)),
|
map(state => state.books?.find(b => b.id === bookId)),
|
||||||
filter((book): book is Book => !!book && !!book.metadata),
|
filter((book): book is Book => !!book && !!book.metadata),
|
||||||
distinctUntilChanged((a, b) => a.id === b.id && a.metadata === b.metadata),
|
distinctUntilChanged(),
|
||||||
switchMap(book =>
|
switchMap(book =>
|
||||||
this.bookService.getBookByIdFromAPI(book.id, true)
|
this.bookService.getBookByIdFromAPI(book.id, true)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user