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/cjs/index.js +8 -6
- package/cjs/index.js.map +1 -1
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
@@ -1132,10 +1132,11 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1132
1132
|
return [4 /*yield*/, metersStore.fetchMeters()];
|
1133
1133
|
case 1:
|
1134
1134
|
_c.sent();
|
1135
|
+
_c.label = 2;
|
1136
|
+
case 2:
|
1135
1137
|
if (onLoad)
|
1136
1138
|
onLoad();
|
1137
|
-
|
1138
|
-
case 2: return [3 /*break*/, 4];
|
1139
|
+
return [3 /*break*/, 4];
|
1139
1140
|
case 3:
|
1140
1141
|
if (shouldBeLoad === false && onLoad)
|
1141
1142
|
onLoad();
|
@@ -1195,15 +1196,16 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1195
1196
|
return __generator(this, function (_c) {
|
1196
1197
|
switch (_c.label) {
|
1197
1198
|
case 0:
|
1198
|
-
if (!shouldBeLoad) return [3 /*break*/, 3];
|
1199
|
-
if (
|
1199
|
+
if (!(shouldBeLoad && apartmentId)) return [3 /*break*/, 3];
|
1200
|
+
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];
|
1200
1201
|
return [4 /*yield*/, fillingStore.fetchFillingList(apartmentId, "appliance")];
|
1201
1202
|
case 1:
|
1202
1203
|
_c.sent();
|
1204
|
+
_c.label = 2;
|
1205
|
+
case 2:
|
1203
1206
|
if (onLoad)
|
1204
1207
|
onLoad();
|
1205
|
-
|
1206
|
-
case 2: return [3 /*break*/, 4];
|
1208
|
+
return [3 /*break*/, 4];
|
1207
1209
|
case 3:
|
1208
1210
|
if (shouldBeLoad === false && onLoad)
|
1209
1211
|
onLoad();
|