Skip to content

Commit

Permalink
Merge pull request magento#2815 from magento/MSI-load-default-locatio…
Browse files Browse the repository at this point in the history
…ns-list

Load default pickup locations list with empty search query
  • Loading branch information
sidolov authored Feb 5, 2020
2 parents 95fd3fb + 031b730 commit 0674a62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ define([
'Magento_Checkout/js/model/address-converter',
'Magento_Checkout/js/action/set-shipping-information',
'Magento_InventoryInStorePickupFrontend/js/model/pickup-locations-service',
'Magento_Checkout/js/checkout-data'
'Magento_Checkout/js/checkout-data',
'Magento_InventoryInStorePickupFrontend/js/view/store-pickup'
], function (
$,
_,
Expand Down Expand Up @@ -74,6 +75,7 @@ define([
this.updateNearbyLocations(searchQuery + this.delimiter + country);
}, this.searchDebounceTimeout).bind(this);
this.searchQuery.subscribe(updateNearbyLocations);
this.searchQuery.notifySubscribers('');

return this;
},
Expand Down

0 comments on commit 0674a62

Please sign in to comment.