Skip to content

Commit ddf8871

Browse files
committedJan 29, 2025
fix for ensureUniqueProperties where uniqueIdentifier is used
1 parent ef6a4dc commit ddf8871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/project-editor/store/commands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function ensureUniqueProperties(
445445
);
446446
objects.forEach(object => {
447447
for (const propertyInfo of getClassInfo(object).properties) {
448-
if (propertyInfo.unique) {
448+
if (propertyInfo.unique || propertyInfo.uniqueIdentifier) {
449449
if (propertyInfo.type == PropertyType.GUID) {
450450
(object as any)[propertyInfo.name] = guid();
451451
} else {

0 commit comments

Comments
 (0)
Failed to load comments.