@thefittingroom/shop-ui 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.1.10 (2024-05-17T17:05:22.690Z)
2
+ * thefittingroom v1.2.1 (2024-06-18T16:26:11.166Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  function loadImageRecursive(imageURL, imageURLs) {
@@ -36703,9 +36703,15 @@ class TfrSizeRec {
36703
36703
  return sizes;
36704
36704
  }
36705
36705
  catch (error) {
36706
- console.error(error);
36707
- this.sizeRecComponent.setError();
36708
- return null;
36706
+ try {
36707
+ const sizes = await this.getRecommendedSizes(String(this.sku));
36708
+ return sizes;
36709
+ }
36710
+ catch (error) {
36711
+ console.error(error);
36712
+ this.sizeRecComponent.setError();
36713
+ return null;
36714
+ }
36709
36715
  }
36710
36716
  }
36711
36717
  async getRecommendedSizes(styleId) {