@noraent/nora-datagrid 0.0.213 → 0.0.214
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/dist/buildPackage.json
CHANGED
package/dist/nora_datagrid.es.js
CHANGED
|
@@ -7562,14 +7562,14 @@ const DataGridMain3 = React.memo(({ props, prevProps }) => {
|
|
|
7562
7562
|
React.useEffect(() => {
|
|
7563
7563
|
if (prevProps.current) {
|
|
7564
7564
|
Object.keys(props).forEach((key) => {
|
|
7565
|
-
var _a;
|
|
7565
|
+
var _a, _b, _c;
|
|
7566
7566
|
const typedKey = key;
|
|
7567
7567
|
if (prevProps.current && ((_a = prevProps.current) == null ? void 0 : _a[typedKey]) !== props[typedKey]) {
|
|
7568
7568
|
const basicStore = gridRef.current.setBasicStore(props);
|
|
7569
7569
|
gridRef.current.setStoreState(typedKey, basicStore[typedKey]);
|
|
7570
7570
|
store.setState(["state", typedKey], basicStore[typedKey]);
|
|
7571
7571
|
if (key === "loader") {
|
|
7572
|
-
console.log("!!!", key, typeof (props == null ? void 0 : props.loader) === "function" ? props.loader() : void 0);
|
|
7572
|
+
console.log("!!!", key, typeof (props == null ? void 0 : props.loader) === "function" ? (_c = (_b = props.loader()) == null ? void 0 : _b.formState) == null ? void 0 : _c.errors : void 0);
|
|
7573
7573
|
gridRef.current.store.__loader = typeof (props == null ? void 0 : props.loader) === "function" ? props.loader() : void 0;
|
|
7574
7574
|
store.setState(["__loader"], typeof (props == null ? void 0 : props.loader) === "function" ? props.loader() : void 0);
|
|
7575
7575
|
}
|