kui-crm_actions 0.0.81 → 0.0.82

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
@@ -1024,13 +1024,13 @@ var useMetersValues = function (formStore, metersStore) {
1024
1024
  var FillingListStore = /** @class */ (function () {
1025
1025
  function FillingListStore() {
1026
1026
  var _this = this;
1027
- this.fetchFillingList = function (apartmentId) { return __awaiter(_this, void 0, void 0, function () {
1027
+ this.fetchFillingList = function (apartmentId, fillingType) { return __awaiter(_this, void 0, void 0, function () {
1028
1028
  var response;
1029
1029
  return __generator(this, function (_a) {
1030
1030
  switch (_a.label) {
1031
1031
  case 0:
1032
1032
  this.loader.startLoading();
1033
- return [4 /*yield*/, to__default["default"](kuiCrm.ApartmentsAgent.getFillingList(apartmentId))];
1033
+ return [4 /*yield*/, to__default["default"](kuiCrm.ApartmentsAgent.getFillingList(apartmentId, fillingType))];
1034
1034
  case 1:
1035
1035
  response = _a.sent();
1036
1036
  kuiUtils.resHandler(response, this.loader, this.updateFillingList);
@@ -1058,7 +1058,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore) {
1058
1058
  react.useEffect(function () {
1059
1059
  var _a, _b;
1060
1060
  if (!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length) && apartmentId) {
1061
- fillingStore.fetchFillingList(apartmentId);
1061
+ fillingStore.fetchFillingList(apartmentId, "appliance");
1062
1062
  }
1063
1063
  }, [apartmentId]);
1064
1064
  react.useEffect(function () {