mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 20:43:39 +02:00
don't store undefined in a qml int.
This commit is contained in:
parent
886df959d1
commit
8b713a437f
1 changed files with 2 additions and 2 deletions
|
@ -83,8 +83,8 @@ ListModel {
|
|||
if (response.current_page && response.current_page !== currentPageToRetrieve) { // Not all endpoints specify this property.
|
||||
return fail("Mismatched page, expected:" + currentPageToRetrieve);
|
||||
}
|
||||
totalPages = response.total_pages;
|
||||
totalEntries = response.total_entries;
|
||||
totalPages = response.total_pages || 0;
|
||||
totalEntries = response.total_entries || 0;
|
||||
processed = processPage(response.data || response);
|
||||
if (totalPages && (totalPages === currentPageToRetrieve)) {
|
||||
currentPageToRetrieve = -1;
|
||||
|
|
Loading…
Reference in a new issue