Copy change
This commit is contained in:
parent
eaa1af7da2
commit
1c8feaedb1
|
@ -369,7 +369,7 @@ describe.each([
|
||||||
status: 400,
|
status: 400,
|
||||||
body: {
|
body: {
|
||||||
message:
|
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,
|
status: 400,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -77,14 +77,14 @@ async function guardViewSchema(
|
||||||
|
|
||||||
if (!viewSchemaField?.visible) {
|
if (!viewSchemaField?.visible) {
|
||||||
throw new HTTPError(
|
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
|
400
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewSchemaField.readonly) {
|
if (viewSchemaField.readonly) {
|
||||||
throw new HTTPError(
|
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
|
400
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue