Deep clone of duplicate WI entry Fixes #4438

76326344b0b8dc794b2d84cabf237cda7d640c6f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/world-info.js+1 -1
@@ -3705,7 +3705,7 @@ export function duplicateWorldInfoEntry(data, uid) {
3705 }3705 }
37063706
3707 // Exclude uid and gather the rest of the properties3707 // Exclude uid and gather the rest of the properties
3708 const originalData = Object.assign({}, data.entries[uid]);3708 const originalData = structuredClone(data.entries[uid]);
3709 delete originalData.uid;3709 delete originalData.uid;
37103710
3711 // Create new entry and copy over data3711 // Create new entry and copy over data