Explorar el Código

Поправлен мелкий баг

Book Pauk hace 2 años
padre
commit
8ed52f62b8
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      server/core/opds/SearchPage.js

+ 2 - 3
server/core/opds/SearchPage.js

@@ -31,10 +31,9 @@ class SearchPage extends BasePage {
                 const found = queryRes.found;
 
                 for (let i = 0; i < found.length; i++) {
-                    if (i >= limit)
-                        break;
-
                     const row = found[i];
+                    if (!row.bookCount)
+                        continue;
 
                     entry.push(
                         this.makeEntry({