Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix: properly overrides form submission relationTo #19 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsfletch authored Jan 23, 2023
1 parent f95fd16 commit 16f7e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collections/FormSubmissions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f7e1d

Please sign in to comment.