Skip to content

Commit 36a4906

Browse files
use correct new properties or empty (#251)
1 parent 8d80568 commit 36a4906

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

forward_engineering/helpers/alterScriptHelpers/entityHelper/sharedKeyConstraintHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const wasCompositeKeyChangedInTransitionFromCompositeToRegular = (collection, co
6868
}
6969

7070
const idOfKeyColumn = idsOfColumns[0];
71-
const newColumnJsonSchema = Object.values(collection.role.properties).find(
71+
const newColumnJsonSchema = Object.values(collection.properties || {}).find(
7272
columnJsonSchema => columnJsonSchema.GUID === idOfKeyColumn,
7373
);
7474

0 commit comments

Comments
 (0)