Fix logical error in multivalued attributes

This commit is contained in:
Joseph Garrone
2024-08-25 03:19:34 +02:00
parent c98dbe84c6
commit 1d8b6c7792

View File

@ -1394,14 +1394,10 @@ export function getButtonToDisplayForMultivaluedAttributeField(params: { attribu
})(); })();
if (maxCount === undefined) { if (maxCount === undefined) {
return false; return true;
} }
if (values.length === maxCount) { return values.length !== maxCount;
return false;
}
return true;
})(); })();
return { hasRemove, hasAdd }; return { hasRemove, hasAdd };