fix (web): disable loading offline version of book if client offline (should fix empty collections list bug)

This commit is contained in:
Michael 2025-08-18 15:21:03 +03:00
parent 2666b76b44
commit f6de4891b1

View File

@ -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))