Copy change

This commit is contained in:
Adria Navarro 2024-06-04 12:03:42 +02:00
parent eaa1af7da2
commit 1c8feaedb1
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ describe.each([
status: 400,
body: {
message:
'You can\'t make field "name" readonly because it is a required field.',
'You can\'t make "name" readonly because it is a required field.',
status: 400,
},
})

View File

@ -77,14 +77,14 @@ async function guardViewSchema(
if (!viewSchemaField?.visible) {
throw new HTTPError(
`You can't hide the required field "${field.name}"`,
`You can't hide "${field.name} because it is a required field."`,
400
)
}
if (viewSchemaField.readonly) {
throw new HTTPError(
`You can't make field "${field.name}" readonly because it is a required field.`,
`You can't make "${field.name}" readonly because it is a required field.`,
400
)
}