mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use Math.max in query limit for movies list
This commit is contained in:
parent
2c6029fc93
commit
9fad1217d5
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ define(["loading", "layoutManager", "userSettings", "events", "libraryBrowser",
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
query.StartIndex -= query.Limit;
|
if (userSettings.libraryPageSize() > 0) {
|
||||||
|
query.StartIndex = Math.max(0, query.StartIndex - query.Limit);
|
||||||
|
}
|
||||||
itemsContainer.refreshItems();
|
itemsContainer.refreshItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue