@dexteel/mesf-core 3.6.3 → 3.6.5
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/CHANGELOG.md +4 -0
- package/dist/index.esm.js +1 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -2874,10 +2874,8 @@ var TableShiftsCrews = function (_a) {
|
|
|
2874
2874
|
|
|
2875
2875
|
var ShiftsCrews = function (prop) {
|
|
2876
2876
|
var _a = useState(true), isLoading = _a[0], setIsLoading = _a[1];
|
|
2877
|
-
var _b = useShiftsCrewsContext(), _c = _b.state, shifts = _c.shifts
|
|
2877
|
+
var _b = useShiftsCrewsContext(), _c = _b.state, shifts = _c.shifts; _c.pruebas; var _d = _b.actions, setShiftsCrews = _d.setShiftsCrews; _d.setPruebas;
|
|
2878
2878
|
var _e = useState([]); _e[0]; var setPrueba = _e[1];
|
|
2879
|
-
// console.log(prueba)
|
|
2880
|
-
console.log(pruebas);
|
|
2881
2879
|
var getShiftsCrewsFromAPI = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2882
2880
|
var resp;
|
|
2883
2881
|
return __generator(this, function (_a) {
|
|
@@ -2888,9 +2886,6 @@ var ShiftsCrews = function (prop) {
|
|
|
2888
2886
|
case 1:
|
|
2889
2887
|
resp = _a.sent();
|
|
2890
2888
|
if (resp.ok) {
|
|
2891
|
-
// console.log(resp.data.tables[0].rows)
|
|
2892
|
-
console.log("1", resp.data.tables[0].rows);
|
|
2893
|
-
console.log("2", shifts);
|
|
2894
2889
|
setShiftsCrews(resp.data.tables[0].rows);
|
|
2895
2890
|
// FIXME: el seter no está funcionando
|
|
2896
2891
|
setPrueba(resp.data.tables[0].rows);
|
|
@@ -2904,7 +2899,6 @@ var ShiftsCrews = function (prop) {
|
|
|
2904
2899
|
}
|
|
2905
2900
|
});
|
|
2906
2901
|
}); };
|
|
2907
|
-
setPruebas("cambié");
|
|
2908
2902
|
useEffect(function () {
|
|
2909
2903
|
getShiftsCrewsFromAPI();
|
|
2910
2904
|
}, []);
|