dce-reactkit 3.4.0-beta.7 → 3.4.0-beta.8
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/dist/esm/index.js
CHANGED
|
@@ -39733,7 +39733,7 @@ const AddOrEditDBEntry = (props) => {
|
|
|
39733
39733
|
return validationError;
|
|
39734
39734
|
}
|
|
39735
39735
|
// Check if unique field is unique
|
|
39736
|
-
if (field.objectKey === idPropName) {
|
|
39736
|
+
if (field.objectKey === idPropName && !dbEntryToEdit) {
|
|
39737
39737
|
if (entries.find((e) => { return e[idPropName] === value; })) {
|
|
39738
39738
|
validationError = `An item with the ${field.label} ${value} already exists. ${field.label} must be unique.`;
|
|
39739
39739
|
return validationError;
|