Fix pagination in search
This commit is contained in:
parent
363ab9e0a0
commit
fffd101f85
@ -1785,7 +1785,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 149;
|
||||
CURRENT_PROJECT_VERSION = 151;
|
||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||
@ -1812,7 +1812,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 149;
|
||||
CURRENT_PROJECT_VERSION = 151;
|
||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||
|
||||
@ -84,6 +84,7 @@ final class SearchViewModel: ACHudContainer {
|
||||
if response.items.isEmpty {
|
||||
hasMoreData = false
|
||||
} else {
|
||||
hasMoreData = response.pageToken != nil
|
||||
vehicles += response.items
|
||||
pageToken = response.pageToken
|
||||
vehiclesCount = response.count ?? 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user