@lightdash/visualization 2.415.1 → 2.415.3

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.
@@ -16,7 +16,8 @@ const resolvePivotRowFieldIds = ({ selectedItemIds, itemsMap, pivotDimensions, c
16
16
  item !== undefined &&
17
17
  ((0, common_1.isDimension)(item) || (0, common_1.isCustomDimension)(item)));
18
18
  });
19
- if (pivotRows === undefined)
19
+ // Unpivoted tables follow columnOrder; a stale pivotRows must not override it
20
+ if (pivotRows === undefined || pivotDimensionSet.size === 0)
20
21
  return defaultRowDimensions;
21
22
  const configuredFields = pivotRows.filter((fieldId) => {
22
23
  const item = itemsMap[fieldId];
@@ -12,7 +12,8 @@ export const resolvePivotRowFieldIds = ({ selectedItemIds, itemsMap, pivotDimens
12
12
  item !== undefined &&
13
13
  (isDimension(item) || isCustomDimension(item)));
14
14
  });
15
- if (pivotRows === undefined)
15
+ // Unpivoted tables follow columnOrder; a stale pivotRows must not override it
16
+ if (pivotRows === undefined || pivotDimensionSet.size === 0)
16
17
  return defaultRowDimensions;
17
18
  const configuredFields = pivotRows.filter((fieldId) => {
18
19
  const item = itemsMap[fieldId];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/visualization",
3
- "version": "2.415.1",
3
+ "version": "2.415.3",
4
4
  "description": "Headless Lightdash chart engine: turns a saved chart's config and query results into ECharts options, table and big number models",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "./package.json": "./package.json"
61
61
  },
62
62
  "dependencies": {
63
- "@lightdash/common": "2.415.1",
63
+ "@lightdash/common": "2.415.3",
64
64
  "dayjs": "1.11.10",
65
65
  "lodash": "4.18.1",
66
66
  "tslib": "2.8.1"