@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
|
@@ -1582,12 +1582,14 @@ export default {
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
checkAndRefreshUuids(selected, clipboardItems) {
|
|
1584
1584
|
return clipboardItems.map(config => {
|
|
1585
|
-
//
|
|
1586
|
-
|
|
1585
|
+
// Return early if UUIDs don't match
|
|
1586
|
+
if (selected.uuid !== config.uuid) {
|
|
1587
|
+
return config;
|
|
1588
|
+
}
|
|
1587
1589
|
|
|
1588
|
-
//
|
|
1589
|
-
if (!isEqual) {
|
|
1590
|
-
config.uuid = this.generateUUID();
|
|
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;
|