Skip to content

Commit

Permalink
fix(core): Fix Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Oct 17, 2023
1 parent 3211d75 commit 30c8e56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/api/config/generate-resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ function generateCustomFieldRelationResolvers(
context: any,
) => {
const ctx: RequestContext = context.req[REQUEST_CONTEXT_KEY];
const eagerntity = source[fieldDef.name];
const eagerEntity = source[fieldDef.name];
// If the relation is eager-loaded, we can simply try to translate this relation entity if they have translations
if (eagerntity != null) {
return customFieldRelationResolverService.translateEntity(ctx, eagerntity, fieldDef);
if (eagerEntity != null) {
return customFieldRelationResolverService.translateEntity(ctx, eagerEntity, fieldDef);
}
const entityId = source[ENTITY_ID_KEY];
return customFieldRelationResolverService.resolveRelation({
Expand Down

0 comments on commit 30c8e56

Please sign in to comment.