@gravity-ui/dashkit 8.5.0-beta.1 → 8.5.0-beta.2
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.
|
@@ -144,6 +144,10 @@ function useMemoStateContext(props) {
|
|
|
144
144
|
if (item.parent) {
|
|
145
145
|
adjustedItem.parent = item.parent;
|
|
146
146
|
}
|
|
147
|
+
// update originalLayouts memoized item
|
|
148
|
+
if (originalLayouts.current[item.i]) {
|
|
149
|
+
originalLayouts.current[item.i] = item;
|
|
150
|
+
}
|
|
147
151
|
return adjustedItem;
|
|
148
152
|
}
|
|
149
153
|
else {
|
|
@@ -141,6 +141,10 @@ function useMemoStateContext(props) {
|
|
|
141
141
|
if (item.parent) {
|
|
142
142
|
adjustedItem.parent = item.parent;
|
|
143
143
|
}
|
|
144
|
+
// update originalLayouts memoized item
|
|
145
|
+
if (originalLayouts.current[item.i]) {
|
|
146
|
+
originalLayouts.current[item.i] = item;
|
|
147
|
+
}
|
|
144
148
|
return adjustedItem;
|
|
145
149
|
}
|
|
146
150
|
else {
|