@voplus/morpho-workspace 5.0.43 → 5.0.44
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
|
2
2
|
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
3
3
|
import { useWorkScheduleStore } from "./WorkScheduleStore";
|
4
4
|
/** React hook to retrieve a workSchedule
|
@@ -13,7 +13,6 @@ export const useWorkSchedule = (id, options) => {
|
|
13
13
|
export const useWorkScheduleListEffect = (list, effect, options) => {
|
14
14
|
const deps = options ? options : {};
|
15
15
|
const store = useWorkScheduleStore();
|
16
|
-
|
17
|
-
return useDocumentListLoaderEffect(list, effect, () => store.loadList(options), [deps]);
|
16
|
+
return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
|
18
17
|
};
|
19
18
|
//# sourceMappingURL=hooks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/work-schedule/hooks.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/work-schedule/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,OAAiC,EAAE,EAAE;IAChF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IAC9D,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,IAAgD,EAChD,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|