kui-crm_actions 0.0.125 → 0.0.126

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/index.js CHANGED
@@ -1103,10 +1103,11 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
1103
1103
  return [4 /*yield*/, metersStore.fetchMeters()];
1104
1104
  case 1:
1105
1105
  _c.sent();
1106
+ _c.label = 2;
1107
+ case 2:
1106
1108
  if (onLoad)
1107
1109
  onLoad();
1108
- _c.label = 2;
1109
- case 2: return [3 /*break*/, 4];
1110
+ return [3 /*break*/, 4];
1110
1111
  case 3:
1111
1112
  if (shouldBeLoad === false && onLoad)
1112
1113
  onLoad();
@@ -1166,15 +1167,16 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
1166
1167
  return __generator(this, function (_c) {
1167
1168
  switch (_c.label) {
1168
1169
  case 0:
1169
- if (!shouldBeLoad) return [3 /*break*/, 3];
1170
- if (!(!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length) && apartmentId)) return [3 /*break*/, 2];
1170
+ if (!(shouldBeLoad && apartmentId)) return [3 /*break*/, 3];
1171
+ if (!!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length)) return [3 /*break*/, 2];
1171
1172
  return [4 /*yield*/, fillingStore.fetchFillingList(apartmentId, "appliance")];
1172
1173
  case 1:
1173
1174
  _c.sent();
1175
+ _c.label = 2;
1176
+ case 2:
1174
1177
  if (onLoad)
1175
1178
  onLoad();
1176
- _c.label = 2;
1177
- case 2: return [3 /*break*/, 4];
1179
+ return [3 /*break*/, 4];
1178
1180
  case 3:
1179
1181
  if (shouldBeLoad === false && onLoad)
1180
1182
  onLoad();