diff --git a/packages/core/src/lib/core/resolve-relationships.ts b/packages/core/src/lib/core/resolve-relationships.ts index 086e2987763..e69bd75ba14 100644 --- a/packages/core/src/lib/core/resolve-relationships.ts +++ b/packages/core/src/lib/core/resolve-relationships.ts @@ -138,7 +138,9 @@ export function resolveRelationships( ); } - const actualRef = foreignField.field ? `${foreignField.list}.${foreignField.field}` : foreignField.list; + const actualRef = foreignField.field + ? `${foreignField.list}.${foreignField.field}` + : foreignField.list; if (actualRef !== localRef) { throw new Error( `${localRef} points to ${foreignRef}, ${foreignRef} points to ${actualRef}, expected ${foreignRef} to point to ${localRef}`