kui-crm_actions 0.0.124 → 0.0.125
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 +4 -4
- package/cjs/index.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
@@ -1137,7 +1137,7 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1137
1137
|
_c.label = 2;
|
1138
1138
|
case 2: return [3 /*break*/, 4];
|
1139
1139
|
case 3:
|
1140
|
-
if (onLoad)
|
1140
|
+
if (shouldBeLoad === false && onLoad)
|
1141
1141
|
onLoad();
|
1142
1142
|
_c.label = 4;
|
1143
1143
|
case 4: return [2 /*return*/];
|
@@ -1146,7 +1146,7 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1146
1146
|
}); };
|
1147
1147
|
react.useEffect(function () {
|
1148
1148
|
loadMeters();
|
1149
|
-
}, []);
|
1149
|
+
}, [shouldBeLoad]);
|
1150
1150
|
react.useEffect(function () {
|
1151
1151
|
if (!metersStore.loader.isLoading) {
|
1152
1152
|
formStore.updateFormFields({ meters: metersStore.meters });
|
@@ -1205,7 +1205,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1205
1205
|
_c.label = 2;
|
1206
1206
|
case 2: return [3 /*break*/, 4];
|
1207
1207
|
case 3:
|
1208
|
-
if (onLoad)
|
1208
|
+
if (shouldBeLoad === false && onLoad)
|
1209
1209
|
onLoad();
|
1210
1210
|
_c.label = 4;
|
1211
1211
|
case 4: return [2 /*return*/];
|
@@ -1214,7 +1214,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1214
1214
|
}); };
|
1215
1215
|
react.useEffect(function () {
|
1216
1216
|
loadFillingList();
|
1217
|
-
}, [apartmentId]);
|
1217
|
+
}, [apartmentId, shouldBeLoad]);
|
1218
1218
|
react.useEffect(function () {
|
1219
1219
|
var _a, _b;
|
1220
1220
|
if (!fillingStore.loader.isLoading && !((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length)) {
|