@evergis/react 3.1.100 → 3.1.101

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/react.esm.js CHANGED
@@ -9987,15 +9987,16 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
9987
9987
  !!currentDataSources[index].url ||
9988
9988
  !!currentDataSources[index].resourceId;
9989
9989
  newDataSources[index].layerName = currentDataSources[index].layerName;
9990
+ const items = response.status === "rejected" ? null : response.value?.items || response.items;
9990
9991
  newDataSources[index].features =
9991
9992
  response.status === "rejected"
9992
9993
  ? null
9993
9994
  : isQueryDataSource
9994
- ? response.value.items?.map((item, itemIndex) => ({
9995
+ ? items?.map((item, itemIndex) => ({
9995
9996
  id: itemIndex + 1,
9996
9997
  attributes: item.attributes,
9997
9998
  }))
9998
- : response.value?.items;
9999
+ : items;
9999
10000
  newDataSources[index].attributeDefinition =
10000
10001
  response.status === "rejected" || !isQueryDataSource
10001
10002
  ? null