@bpmn-io/properties-panel 3.36.0 → 3.37.0

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/index.js CHANGED
@@ -1049,9 +1049,11 @@ function PropertiesPanel(props) {
1049
1049
  return minDash.get(layout, key, defaultValue);
1050
1050
  };
1051
1051
  const setLayoutForKey = (key, config) => {
1052
- const newLayout = minDash.assign({}, layout);
1053
- minDash.set(newLayout, key, config);
1054
- setLayout(newLayout);
1052
+ setLayout(prevLayout => {
1053
+ const newLayout = minDash.assign({}, prevLayout);
1054
+ minDash.set(newLayout, key, config);
1055
+ return newLayout;
1056
+ });
1055
1057
  };
1056
1058
  const layoutContext = {
1057
1059
  layout,