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 +3 -2
- package/cjs/index.js.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1185,7 +1185,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1185
1185
|
switch (_c.label) {
|
1186
1186
|
case 0:
|
1187
1187
|
if (!(shouldBeLoad && apartmentId)) return [3 /*break*/, 3];
|
1188
|
-
if (!!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.
|
1188
|
+
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];
|
1189
1189
|
return [4 /*yield*/, fillingStore.fetchFillingList(apartmentId, "appliance")];
|
1190
1190
|
case 1:
|
1191
1191
|
_c.sent();
|
@@ -1206,7 +1206,8 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1206
1206
|
}, [apartmentId, shouldBeLoad]);
|
1207
1207
|
useEffect(function () {
|
1208
1208
|
var _a, _b;
|
1209
|
-
if (!fillingStore.loader.isLoading &&
|
1209
|
+
if (!fillingStore.loader.isLoading &&
|
1210
|
+
!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.fillingList) === null || _b === void 0 ? void 0 : _b.length)) {
|
1210
1211
|
formStore.updateFormFields({
|
1211
1212
|
fillingList: fillingStore.fillingList.map(function (filling) { return (__assign(__assign({}, filling), { check: false })); }),
|
1212
1213
|
});
|