Skip to content

Commit

Permalink
changed description
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Nov 6, 2024
1 parent 823c524 commit 7758a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studioShared/schemas/objects/textBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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"],
}));
}
Expand Down

0 comments on commit 7758a8a

Please sign in to comment.