@zat-design/sisyphus-react 3.6.6-beta.7 → 3.6.7-beta.1
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.
|
@@ -40,7 +40,7 @@ var _treeNodePreImpl = function treeNodePreImpl(treeItem, callback, options) {
|
|
|
40
40
|
return treeItem;
|
|
41
41
|
}
|
|
42
42
|
var finalChildrenKey = getFinalChildrenKey(treeItem, options, options);
|
|
43
|
-
var children = treeItem[finalChildrenKey];
|
|
43
|
+
var children = treeItem === null || treeItem === void 0 ? void 0 : treeItem[finalChildrenKey];
|
|
44
44
|
if (!children || !Array.isArray(children)) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -125,7 +125,7 @@ export function createTreeFromArray(array, options) {
|
|
|
125
125
|
var _treeForEachPreImpl = function treeForEachPreImpl(treeItem, callback, options) {
|
|
126
126
|
callback(treeItem, options);
|
|
127
127
|
var finalChildrenKey = getFinalChildrenKey(treeItem, options, options);
|
|
128
|
-
var children = treeItem[finalChildrenKey];
|
|
128
|
+
var children = treeItem === null || treeItem === void 0 ? void 0 : treeItem[finalChildrenKey];
|
|
129
129
|
if (children && Array.isArray(children)) {
|
|
130
130
|
var nextLevelOptions = _objectSpread(_objectSpread({}, options), {}, {
|
|
131
131
|
parents: [].concat(_toConsumableArray(options.parents), [treeItem]),
|
|
@@ -52,7 +52,7 @@ var _treeNodePreImpl = function treeNodePreImpl(treeItem, callback, options) {
|
|
|
52
52
|
return treeItem;
|
|
53
53
|
}
|
|
54
54
|
var finalChildrenKey = getFinalChildrenKey(treeItem, options, options);
|
|
55
|
-
var children = treeItem[finalChildrenKey];
|
|
55
|
+
var children = treeItem === null || treeItem === void 0 ? void 0 : treeItem[finalChildrenKey];
|
|
56
56
|
if (!children || !Array.isArray(children)) {
|
|
57
57
|
return undefined;
|
|
58
58
|
}
|
|
@@ -137,7 +137,7 @@ function createTreeFromArray(array, options) {
|
|
|
137
137
|
var _treeForEachPreImpl = function treeForEachPreImpl(treeItem, callback, options) {
|
|
138
138
|
callback(treeItem, options);
|
|
139
139
|
var finalChildrenKey = getFinalChildrenKey(treeItem, options, options);
|
|
140
|
-
var children = treeItem[finalChildrenKey];
|
|
140
|
+
var children = treeItem === null || treeItem === void 0 ? void 0 : treeItem[finalChildrenKey];
|
|
141
141
|
if (children && Array.isArray(children)) {
|
|
142
142
|
var nextLevelOptions = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
|
143
143
|
parents: [].concat((0, _toConsumableArray2.default)(options.parents), [treeItem]),
|