From 7758a8aebcafd7aa0b869ea2dae1287a10894dcc Mon Sep 17 00:00:00 2001 From: Ane Date: Wed, 6 Nov 2024 13:14:19 +0100 Subject: [PATCH] changed description --- studioShared/schemas/objects/textBlock.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studioShared/schemas/objects/textBlock.ts b/studioShared/schemas/objects/textBlock.ts index b4988b0dc..3e575594a 100644 --- a/studioShared/schemas/objects/textBlock.ts +++ b/studioShared/schemas/objects/textBlock.ts @@ -39,7 +39,7 @@ const textBlock = defineField({ title: "Block text content", type: "internationalizedArrayText", description: - "Please type the text content for the block. This field is required, and cannot be more than 300 characters.", + "Please type the text content for the block. This field is required, and cannot be more than 500 characters.", validation: (rule) => rule.custom<{ value: string; _type: string; _key: string }[]>( (value) => { @@ -48,12 +48,12 @@ const textBlock = defineField({ } const invalidItems = value.filter( (item) => - typeof item.value === "string" && item.value.length > 300, + typeof item.value === "string" && item.value.length > 500, ); if (invalidItems.length > 0) { return invalidItems.map((item) => ({ - message: "Title cannot be more than 50 characters long.", + message: "Title cannot be more than 500 characters long.", path: [{ _key: item._key }, "value"], })); }