Skip to content

Commit

Permalink
fix: Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Sep 16, 2024
1 parent 69ba06e commit 71b7703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor.planx.uk/src/@planx/components/List/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export const parseContent = (data: Record<string, any> | undefined): List => ({

export const validationSchema = object({
schema: object({
max: number().optional().min(2, "Please use a Page component - the maximum must be greater than 1 item"),
max: number().optional().min(2, "The maximum must be greater than 1 - a Page component should be used when max is equal to 1"),
}),
});

0 comments on commit 71b7703

Please sign in to comment.