@bpmn-io/properties-panel 3.36.0 → 3.36.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.
package/dist/index.esm.js CHANGED
@@ -1028,9 +1028,11 @@ function PropertiesPanel(props) {
1028
1028
  return get(layout, key, defaultValue);
1029
1029
  };
1030
1030
  const setLayoutForKey = (key, config) => {
1031
- const newLayout = assign({}, layout);
1032
- set(newLayout, key, config);
1033
- setLayout(newLayout);
1031
+ setLayout(prevLayout => {
1032
+ const newLayout = assign({}, prevLayout);
1033
+ set(newLayout, key, config);
1034
+ return newLayout;
1035
+ });
1034
1036
  };
1035
1037
  const layoutContext = {
1036
1038
  layout,