Skip to content

Commit 7593dff

Browse files
committed
Add fetchLimit 1 for account settings
1 parent 4b03365 commit 7593dff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Post-Purchase/WooShippingPostPurchaseViewModel.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ final class WooShippingPostPurchaseViewModel: ObservableObject {
3232
///
3333
private lazy var accountSettingsResultsController: ResultsController<StorageShippingLabelAccountSettings> = {
3434
let predicate = NSPredicate(format: "siteID == %lld", siteID)
35-
return ResultsController<StorageShippingLabelAccountSettings>(storageManager: storageManager, matching: predicate, sortedBy: [])
35+
return ResultsController<StorageShippingLabelAccountSettings>(
36+
storageManager: storageManager,
37+
matching: predicate,
38+
fetchLimit: 1,
39+
sortedBy: []
40+
)
3641
}()
3742

3843
init(siteID: Int64,

0 commit comments

Comments
 (0)