@yoobic/yobi 8.6.49 → 8.6.51

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.
@@ -53,7 +53,8 @@ const YooFormCatalogComponent = class {
53
53
  formInputHelpers.setValidator(this);
54
54
  }
55
55
  componentDidLoad() {
56
- if (!this.isCheck && this.value && !index$1.isOffline()) { // !this.products?.length
56
+ var _a;
57
+ if (!this.isCheck && !((_a = this.products) === null || _a === void 0 ? void 0 : _a.length) && this.value && !index$1.isOffline()) { //
57
58
  index$1.getAsyncExtraData({ type: 'products-search', params: this.getProductRefs() }).then((ret) => {
58
59
  this.products = ret === null || ret === void 0 ? void 0 : ret.data;
59
60
  index.forceUpdate(this);
@@ -34,7 +34,8 @@ export class YooFormCatalogComponent {
34
34
  setValidator(this);
35
35
  }
36
36
  componentDidLoad() {
37
- if (!this.isCheck && this.value && !isOffline()) { // !this.products?.length
37
+ var _a;
38
+ if (!this.isCheck && !((_a = this.products) === null || _a === void 0 ? void 0 : _a.length) && this.value && !isOffline()) { //
38
39
  getAsyncExtraData({ type: 'products-search', params: this.getProductRefs() }).then((ret) => {
39
40
  this.products = ret === null || ret === void 0 ? void 0 : ret.data;
40
41
  forceUpdate(this);
@@ -49,7 +49,8 @@ const YooFormCatalogComponent = class {
49
49
  setValidator(this);
50
50
  }
51
51
  componentDidLoad() {
52
- if (!this.isCheck && this.value && !isOffline()) { // !this.products?.length
52
+ var _a;
53
+ if (!this.isCheck && !((_a = this.products) === null || _a === void 0 ? void 0 : _a.length) && this.value && !isOffline()) { //
53
54
  getAsyncExtraData({ type: 'products-search', params: this.getProductRefs() }).then((ret) => {
54
55
  this.products = ret === null || ret === void 0 ? void 0 : ret.data;
55
56
  forceUpdate(this);
@@ -49,7 +49,8 @@ const YooFormCatalogComponent = class {
49
49
  setValidator(this);
50
50
  }
51
51
  componentDidLoad() {
52
- if (!this.isCheck && this.value && !isOffline()) { // !this.products?.length
52
+ var _a;
53
+ if (!this.isCheck && !((_a = this.products) === null || _a === void 0 ? void 0 : _a.length) && this.value && !isOffline()) { //
53
54
  getAsyncExtraData({ type: 'products-search', params: this.getProductRefs() }).then((ret) => {
54
55
  this.products = ret === null || ret === void 0 ? void 0 : ret.data;
55
56
  forceUpdate(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.6.49",
3
+ "version": "8.6.51",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",