kitchen-simulator 4.2.6 → 4.2.7

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.
@@ -854,7 +854,7 @@ function replaceObject(modifiedPath, layer, planData, actions, sceneData, oldSce
854
854
  item = layer.getIn(['items', modifiedPath[4]]);
855
855
  addCountertop(planData.sceneGraph.layers[layer.id].countertops, item, planData, layer);
856
856
  // Toggle selection should not update molding
857
- if (item.category === 'cabinet' && modifiedPath[modifiedPath.length - 1] !== 'selected') {
857
+ if (item.category === 'cabinet' && modifiedPath[modifiedPath.length - 1] !== 'selected' && !modifiedPath[modifiedPath.length - 1].includes('handle')) {
858
858
  planData.sceneGraph.layers[layer.id].moldingGroups = addMolding(tmpMoldings, item, planData, layer, actions.itemsActions, mode) || _toConsumableArray(tmpMoldings);
859
859
  }
860
860
  break;
@@ -889,7 +889,7 @@ function replaceObject(modifiedPath, layer, planData, actions, sceneData, oldSce
889
889
  item = layer.getIn(['items', modifiedPath[4]]);
890
890
  addCountertop(planData.sceneGraph.layers[layer.id].countertops, item, planData, layer);
891
891
  // Toggle selection should not update molding
892
- if (item.category === 'cabinet' && modifiedPath[modifiedPath.length - 1] !== 'selected') {
892
+ if (item.category === 'cabinet' && modifiedPath[modifiedPath.length - 1] !== 'selected' && !modifiedPath[modifiedPath.length - 1].includes('handle')) {
893
893
  planData.sceneGraph.layers[layer.id].moldingGroups = addMolding(tmpMoldings, item, planData, layer, actions.itemsActions, mode) || (0, _toConsumableArray2["default"])(tmpMoldings);
894
894
  }
895
895
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",