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.
Files changed (2) hide show
  1. package/lib/index.js +5 -1
  2. 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 (!map.has(node.id)) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.51.7",
3
+ "version": "1.51.9",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"