dce-reactkit 3.4.0-beta.7 → 3.4.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -251,7 +251,7 @@ const AddOrEditDBEntry: React.FC<Props> = (props) => {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// Check if unique field is unique
|
|
254
|
-
if (field.objectKey === idPropName) {
|
|
254
|
+
if (field.objectKey === idPropName && !dbEntryToEdit) {
|
|
255
255
|
if (entries.find((e) => { return e[idPropName] === value; })) {
|
|
256
256
|
validationError = `An item with the ${field.label} ${value} already exists. ${field.label} must be unique.`;
|
|
257
257
|
return validationError;
|
|
@@ -624,7 +624,7 @@ const AddOrEditDBEntry: React.FC<Props> = (props) => {
|
|
|
624
624
|
{field.label}
|
|
625
625
|
</span>
|
|
626
626
|
{/* Add each subfield */}
|
|
627
|
-
<div className="flex-grow-1
|
|
627
|
+
<div className="flex-grow-1 ps-2 pe-2 pt-2 form-control">
|
|
628
628
|
{
|
|
629
629
|
field.subfields.map((subfield: DBEntryField) => {
|
|
630
630
|
return <div>{renderEntryField(subfield, disabled)}</div>;
|