Skip to content

Commit

Permalink
fix(core): Fix custom field relation loading edge-case
Browse files Browse the repository at this point in the history
We were missing the "localeText" type from our existing work-around
for a TypeORM embedded entity loading issue.

Fixes #2708
  • Loading branch information
michaelbromley committed Mar 4, 2024
1 parent 2e3be51 commit 93ca4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/entity/register-custom-entity-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function registerCustomFieldsForEntity(

const relationFieldsCount = customFields.filter(f => f.type === 'relation').length;
const nonLocaleStringFieldsCount = customFields.filter(
f => f.type !== 'localeString' && f.type !== 'relation',
f => f.type !== 'localeString' && f.type !== 'localeText' && f.type !== 'relation',
).length;

if (0 < relationFieldsCount && nonLocaleStringFieldsCount === 0) {
Expand Down

0 comments on commit 93ca4ca

Please sign in to comment.