@processmaker/screen-builder 3.5.3 → 3.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -1582,12 +1582,14 @@ export default {
1582
1582
  */
1583
1583
  checkAndRefreshUuids(selected, clipboardItems) {
1584
1584
  return clipboardItems.map(config => {
1585
- // Use lodash to compare the config objects
1586
- const isEqual = _.isEqual(selected.config, config.config);
1585
+ // Return early if UUIDs don't match
1586
+ if (selected.uuid !== config.uuid) {
1587
+ return config;
1588
+ }
1587
1589
 
1588
- // If they are not equal, update the UUID
1589
- if (!isEqual) {
1590
- config.uuid = this.generateUUID(); // Update UUID
1590
+ // Deep compare configs and update UUID if they differ
1591
+ if (!_.isEqual(selected.config, config.config)) {
1592
+ config.uuid = this.generateUUID();
1591
1593
  }
1592
1594
 
1593
1595
  return config;