Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Sep 29, 2023
1 parent 7d4e2eb commit 65f0bc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/lib/core/resolve-relationships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 65f0bc0

Please sign in to comment.