easy-email-pro-theme 1.51.6 → 1.51.8
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/lib/index.js +7 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -704,9 +704,13 @@ const assignIdsToElementTree = (element, overwrite = false) => {
|
|
|
704
704
|
if (overwrite) {
|
|
705
705
|
node.id = nanoid();
|
|
706
706
|
} else {
|
|
707
|
+
if (!node.id) {
|
|
708
|
+
node.id = nanoid();
|
|
709
|
+
}
|
|
707
710
|
if (map.has(node.id)) {
|
|
708
711
|
const newId = nanoid();
|
|
709
712
|
node.id = newId;
|
|
713
|
+
map.set(newId, true);
|
|
710
714
|
} else {
|
|
711
715
|
map.set(node.id, true);
|
|
712
716
|
}
|
|
@@ -30090,7 +30094,9 @@ function Condition(props) {
|
|
|
30090
30094
|
};
|
|
30091
30095
|
const onSubmit = (values) => {
|
|
30092
30096
|
setFieldValue(nodePath, "logic", __spreadProps(__spreadValues({}, selectedBlock.logic), {
|
|
30093
|
-
condition: values.condition
|
|
30097
|
+
condition: __spreadProps(__spreadValues({}, values.condition), {
|
|
30098
|
+
enabled: true
|
|
30099
|
+
})
|
|
30094
30100
|
}));
|
|
30095
30101
|
setConditionModalVisible(false);
|
|
30096
30102
|
};
|