@gravity-ui/dashkit 8.8.1-beta.4 → 8.8.1-beta.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.
|
@@ -249,7 +249,7 @@ class GridLayout extends react_1.default.PureComponent {
|
|
|
249
249
|
}, temporaryItem ? { [temporaryItem.i]: temporaryItem } : {});
|
|
250
250
|
const newItemsLayoutById = newLayout.reduce((memo, item) => {
|
|
251
251
|
const parent = itemsByGroup[item.i].parent;
|
|
252
|
-
memo[item.i] = Object.assign(Object.assign({}, item), { parent });
|
|
252
|
+
memo[item.i] = Object.assign(Object.assign({}, item), (parent ? { parent } : {}));
|
|
253
253
|
return memo;
|
|
254
254
|
}, {});
|
|
255
255
|
return renderLayout.map((currentItem) => {
|
|
@@ -246,7 +246,7 @@ class GridLayout extends React.PureComponent {
|
|
|
246
246
|
}, temporaryItem ? { [temporaryItem.i]: temporaryItem } : {});
|
|
247
247
|
const newItemsLayoutById = newLayout.reduce((memo, item) => {
|
|
248
248
|
const parent = itemsByGroup[item.i].parent;
|
|
249
|
-
memo[item.i] = Object.assign(Object.assign({}, item), { parent });
|
|
249
|
+
memo[item.i] = Object.assign(Object.assign({}, item), (parent ? { parent } : {}));
|
|
250
250
|
return memo;
|
|
251
251
|
}, {});
|
|
252
252
|
return renderLayout.map((currentItem) => {
|