@iapps/ng-dhis2-ui 1.2.92 → 1.2.93

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.
@@ -6115,8 +6115,8 @@ class BaseFormFieldComponent extends ReactWrapperModule {
6115
6115
  setTouched(true);
6116
6116
  };
6117
6117
  const checkValueUniqueness = async () => {
6118
- console.log('Checking uniqueness for value:', value);
6119
- if (this.field().unique && value && value.length > 0 && touched) {
6118
+ if (this.field().unique || (this.field().extension?.isDataElementUnique ?? false) && value && value.length > 0 && touched) {
6119
+ // if (this.field().unique && value && value.length > 0 && touched) {
6120
6120
  setCheckingUniqueness(true);
6121
6121
  setRecordExistError(undefined);
6122
6122
  try {