From d098cdffe1e3c0a264b74fecf109d2cc94ca38ab Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:57:56 +1000 Subject: [PATCH] tidy up --- packages/core/src/admin-ui/utils/useAdminMeta.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/core/src/admin-ui/utils/useAdminMeta.tsx b/packages/core/src/admin-ui/utils/useAdminMeta.tsx index b655c81a862..99d8dd8bf7a 100644 --- a/packages/core/src/admin-ui/utils/useAdminMeta.tsx +++ b/packages/core/src/admin-ui/utils/useAdminMeta.tsx @@ -78,17 +78,13 @@ export function useAdminMeta (adminMetaHash: string, fieldViews: FieldViews) { for (const field of list.fields) { for (const exportName of expectedExports) { if ((fieldViews[field.viewsIndex] as any)[exportName] === undefined) { - throw new Error( - `The view for the field at ${list.key}.${field.path} is missing the ${exportName} export` - ) + throw new Error(`The view for the field at ${list.key}.${field.path} is missing the ${exportName} export`) } } Object.keys(fieldViews[field.viewsIndex]).forEach(exportName => { if (!expectedExports.has(exportName) && exportName !== 'allowedExportsOnCustomViews') { - throw new Error( - `Unexpected export named ${exportName} from the view from the field at ${list.key}.${field.path}` - ) + throw new Error(`Unexpected export named ${exportName} from the view from the field at ${list.key}.${field.path}`) } })