diff --git a/src/collections/FormSubmissions/index.ts b/src/collections/FormSubmissions/index.ts index 201bd5e..2d008a6 100644 --- a/src/collections/FormSubmissions/index.ts +++ b/src/collections/FormSubmissions/index.ts @@ -27,9 +27,9 @@ export const generateSubmissionCollection = (formConfig: PluginConfig): Collecti }, fields: [ { - name: formConfig?.formOverrides?.slug || 'form', + name: 'form', type: 'relationship', - relationTo: 'forms', + relationTo: formConfig?.formOverrides?.slug || 'forms', required: true, admin: { readOnly: true