mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 17:26:11 +00:00
fix: disable header removal when only one row
This commit is contained in:
parent
da0355849e
commit
8312b64a8b
@ -78,6 +78,7 @@ const HeadersInput = () => {
|
|||||||
paddingTop={errors.headers?.[index]?.value ? 0 : 5}
|
paddingTop={errors.headers?.[index]?.value ? 0 : 5}
|
||||||
>
|
>
|
||||||
<RemoveRoundedButton
|
<RemoveRoundedButton
|
||||||
|
disabled={values.headers.length === 1}
|
||||||
onClick={() => values.headers.length !== 1 && remove(index)}
|
onClick={() => values.headers.length !== 1 && remove(index)}
|
||||||
label={formatMessage(
|
label={formatMessage(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user