We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee38ab9 commit 1440ac7Copy full SHA for 1440ac7
Yosemite/Yosemite/Stores/ProductStore.swift
@@ -211,6 +211,12 @@ private extension ProductStore {
211
}
212
213
214
+ // Do not trigger API request for empty array of items
215
+ guard !missingIDs.isEmpty else {
216
+ onCompletion(nil)
217
+ return
218
+ }
219
+
220
remote.loadProducts(for: order.siteID, by: missingIDs) { [weak self] result in
221
switch result {
222
case .success(let products):
0 commit comments