diff --git a/web/components/pages/modals/page-form.tsx b/web/components/pages/modals/page-form.tsx index 0698b7e2b5..2a3ad8380b 100644 --- a/web/components/pages/modals/page-form.tsx +++ b/web/components/pages/modals/page-form.tsx @@ -35,18 +35,14 @@ export const PageForm: React.FC = (props) => { } }; + const isTitleLengthMoreThan255Character = formData.name ? formData.name.length > 255 : false; + return (

Create Page

-
-
Name
-
- Max length of the name should be less than 255 characters -
-
= (props) => { className="w-full resize-none text-lg" tabIndex={1} required - maxLength={255} /> + {isTitleLengthMoreThan255Character && ( + Max length of the name should be less than 255 characters + )}
@@ -95,7 +93,14 @@ export const PageForm: React.FC = (props) => { -