fix (web): disable loading offline version of book if client offline (should fix empty collections list bug)
This commit is contained in:
parent
2666b76b44
commit
f6de4891b1
@ -72,7 +72,7 @@ const BookPage = () => {
|
||||
}
|
||||
loadImgFromCache();
|
||||
let localBook = await getBook(id);
|
||||
if (window.onLine && !localBook) {
|
||||
if (window.onLine /*&& !localBook*/) {
|
||||
axios
|
||||
.get("/book/" + id)
|
||||
.then((res) => setBookInfo(res.data))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user