mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fetch limit setting only once
This commit is contained in:
parent
d9c9a05b09
commit
32a2df51a3
1 changed files with 4 additions and 3 deletions
|
@ -207,11 +207,12 @@ define(['appSettings', 'events'], function (appSettings, events) {
|
|||
return this.set('libraryPageSize', parseInt(val, 10), false);
|
||||
}
|
||||
|
||||
if (parseInt(this.get('libraryPageSize', false), 10) === 0) {
|
||||
// Explicitely return 0 to avoid returning 100 because 0 is falsy.
|
||||
var libraryPageSize = parseInt(this.get('libraryPageSize', false), 10);
|
||||
if (libraryPageSize === 0) {
|
||||
// Explicitly return 0 to avoid returning 100 because 0 is falsy.
|
||||
return 0;
|
||||
} else {
|
||||
return parseInt(this.get('libraryPageSize', false), 10) || 100;
|
||||
return libraryPageSize || 100;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue