datastake-daf 0.6.160 → 0.6.161
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/components/index.js
CHANGED
|
@@ -14044,7 +14044,7 @@ function useAjaxModal$2({
|
|
|
14044
14044
|
}
|
|
14045
14045
|
|
|
14046
14046
|
const mergeObject = obj => {
|
|
14047
|
-
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
14047
|
+
return Object.entries(obj || {}).reduce((acc, [key, value]) => {
|
|
14048
14048
|
if (typeof value === "object" && !Array.isArray(value) && value !== null) {
|
|
14049
14049
|
return {
|
|
14050
14050
|
...acc,
|
|
@@ -14706,7 +14706,7 @@ const TreeNode = _ref => {
|
|
|
14706
14706
|
}
|
|
14707
14707
|
} else if (config !== null && config !== void 0 && config.inputs) {
|
|
14708
14708
|
if (config.type === 'dataLinkGroup' || config.type === 'dataLink') {
|
|
14709
|
-
const inputKeys = Object.keys(config.inputs).filter(inputKey => {
|
|
14709
|
+
const inputKeys = Object.keys(config === null || config === void 0 ? void 0 : config.inputs).filter(inputKey => {
|
|
14710
14710
|
const inputConfig = config.inputs[inputKey];
|
|
14711
14711
|
// Check showIf condition for input
|
|
14712
14712
|
if (inputConfig !== null && inputConfig !== void 0 && inputConfig.showIf && !evaluateShowIfCondition(inputConfig.showIf, allData)) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import useAjaxModal from '../utils/useAjaxModal';
|
|
3
3
|
|
|
4
4
|
const mergeObject = (obj) => {
|
|
5
|
-
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
5
|
+
return Object.entries(obj || {}).reduce((acc, [key, value]) => {
|
|
6
6
|
if (typeof value === "object" && !Array.isArray(value) && value !== null) {
|
|
7
7
|
return { ...acc, ...value };
|
|
8
8
|
}
|
|
@@ -89,7 +89,7 @@ const TreeNode = ({ nodeKey, config, value, level = 0, isLast = false, t, rootFo
|
|
|
89
89
|
}
|
|
90
90
|
} else if (config?.inputs) {
|
|
91
91
|
if (config.type === 'dataLinkGroup' || config.type === 'dataLink') {
|
|
92
|
-
const inputKeys = Object.keys(config
|
|
92
|
+
const inputKeys = Object.keys(config?.inputs)
|
|
93
93
|
.filter(inputKey => {
|
|
94
94
|
const inputConfig = config.inputs[inputKey];
|
|
95
95
|
// Check showIf condition for input
|