From 65f0bc0e659a97c882c925cc7a7a17dee4c45902 Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:54:10 +1000 Subject: [PATCH] prettier --- packages/core/src/lib/core/resolve-relationships.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}`