@iapps/ng-dhis2-ui 1.2.168 → 1.2.169

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.
@@ -13188,7 +13188,10 @@ class ProgramEntryFormMetaData {
13188
13188
  async #getCustomFieldConfigurations() {
13189
13189
  try {
13190
13190
  const response = await this.d2.httpInstance.get('dataStore/field-extensions?fields=id,fieldOptionsDependsOn,optionSet&paging=false');
13191
- const entries = response?.data?.['entries'];
13191
+ const responseData = response?.data;
13192
+ const entries = Array.isArray(responseData)
13193
+ ? responseData
13194
+ : responseData?.['entries'];
13192
13195
  if (!Array.isArray(entries)) {
13193
13196
  return {};
13194
13197
  }