Skip to content

Commit

Permalink
Elements: duplicate group doesn't work (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao committed Oct 17, 2023
1 parent 3861410 commit 4d43fbf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/src/layout-editor/main.js
Expand Up @@ -4841,8 +4841,11 @@ lD.addElementsToWidget = function(
Math.floor(Math.random() * 1000000);

// Add top layer to the group properties
if (element.groupId) {
element.groupProperties.layer = topLayer;
if (
element.groupId
) {
(element.groupProperties) &&
(element.groupProperties.layer = topLayer);
} else {
// Add element to the top layer
element.layer = topLayer;
Expand Down

0 comments on commit 4d43fbf

Please sign in to comment.