@sis-cc/dotstatsuite-components 12.1.1 → 12.1.2

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.
@@ -150,7 +150,7 @@ var prepareData = exports.prepareData = function prepareData(sdmxJson, customAtt
150
150
  }, dimensionsAttributesValues);
151
151
 
152
152
  var metadataCoordinates = (0, _getMetadataCoordinates.getMetadataCoordinates)(sdmxJson);
153
- var headerAttributesIds = R.concat(attributesIdsIndexedByTargets.dataflow || [], attributesIdsIndexedByTargets.oneValueDimensions || []);
153
+ var headerAttributesIds = R.concat(attributesIdsIndexedByTargets.dataflow || [], R.pipe(R.values, R.unnest)(attributesIdsIndexedByTargets.oneValueDimensions || {}));
154
154
  var headerAttributes = R.pick(headerAttributesIds, attributesIndexedByIds);
155
155
  var headerAdvancedAttrIds = R.pipe(R.filter(function (id) {
156
156
  return !R.includes(id, customAttributes.flags || []) && !R.includes(id, customAttributes.footnotes || []);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-components",
3
3
  "description": "Set components based on React.",
4
- "version": "12.1.1",
4
+ "version": "12.1.2",
5
5
  "main": "lib/index.js",
6
6
  "author": "OECD",
7
7
  "license": "MIT",
@@ -145,7 +145,10 @@ export const prepareData = (sdmxJson, customAttributes, unitsProps={}) => {
145
145
  );
146
146
 
147
147
  const metadataCoordinates = getMetadataCoordinates(sdmxJson);
148
- const headerAttributesIds = R.concat(attributesIdsIndexedByTargets.dataflow || [], attributesIdsIndexedByTargets.oneValueDimensions || []);
148
+ const headerAttributesIds = R.concat(
149
+ attributesIdsIndexedByTargets.dataflow || [],
150
+ R.pipe(R.values, R.unnest)(attributesIdsIndexedByTargets.oneValueDimensions || {})
151
+ );
149
152
  const headerAttributes = R.pick(headerAttributesIds, attributesIndexedByIds);
150
153
  const headerAdvancedAttrIds = R.pipe(
151
154
  R.filter(id => !R.includes(id, customAttributes.flags || []) && !R.includes(id, customAttributes.footnotes || [])),