fix: properly label arrays/blocks with plural and singular
This commit is contained in:
committed by
Elliot DeNolf
parent
f25e9aca61
commit
fa49811377
@@ -241,9 +241,7 @@ const RenderBlocks = React.memo((props: RenderBlockProps) => {
|
||||
<Banner type="error">
|
||||
This field requires at least
|
||||
{' '}
|
||||
{minRows
|
||||
? `${minRows} ${labels.plural}`
|
||||
: `1 ${labels.singular}`}
|
||||
{`${minRows} ${minRows === 1 ? labels.singular : labels.plural}`}
|
||||
</Banner>
|
||||
)}
|
||||
{(rows.length === 0 && readOnly) && (
|
||||
|
||||
Reference in New Issue
Block a user