easy-email-pro-theme 1.51.7 → 1.51.9
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 +5 -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 (!
|
|
707
|
+
if (!node.id) {
|
|
708
|
+
node.id = nanoid();
|
|
709
|
+
}
|
|
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
|
}
|