Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/apps/schema/src/app/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export const getErrorMessage = ({
return "A field with this API/Parsley Reference already exists";
}

if (validate.includes("length") && maxLength && value.length > maxLength) {
if (
validate.includes("length") &&
maxLength &&
value &&
Comment thread
agalin920 marked this conversation as resolved.
value.length > maxLength
) {
return `Shorten to less than ${maxLength} characters (${value.length}/${maxLength})`;
}

Expand Down
Loading