kui-crm_actions 0.0.129 → 0.0.130

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/cjs/index.js CHANGED
@@ -1214,7 +1214,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
1214
1214
  switch (_c.label) {
1215
1215
  case 0:
1216
1216
  if (!(shouldBeLoad && apartmentId)) return [3 /*break*/, 3];
1217
- 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];
1217
+ if (!!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.fillingList) === null || _b === void 0 ? void 0 : _b.length)) return [3 /*break*/, 2];
1218
1218
  return [4 /*yield*/, fillingStore.fetchFillingList(apartmentId, "appliance")];
1219
1219
  case 1:
1220
1220
  _c.sent();
@@ -1235,7 +1235,8 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
1235
1235
  }, [apartmentId, shouldBeLoad]);
1236
1236
  react.useEffect(function () {
1237
1237
  var _a, _b;
1238
- if (!fillingStore.loader.isLoading && !((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length)) {
1238
+ if (!fillingStore.loader.isLoading &&
1239
+ !((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.fillingList) === null || _b === void 0 ? void 0 : _b.length)) {
1239
1240
  formStore.updateFormFields({
1240
1241
  fillingList: fillingStore.fillingList.map(function (filling) { return (__assign(__assign({}, filling), { check: false })); }),
1241
1242
  });