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