mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 08:46:42 +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}
|
||||
>
|
||||
<RemoveRoundedButton
|
||||
disabled={values.headers.length === 1}
|
||||
onClick={() => values.headers.length !== 1 && remove(index)}
|
||||
label={formatMessage(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user