@cubejs-client/core 0.34.37 → 0.34.60
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/cubejs-client-core.esm.js +3 -1
- package/dist/cubejs-client-core.esm.js.map +1 -1
- package/dist/cubejs-client-core.js +3 -1
- package/dist/cubejs-client-core.js.map +1 -1
- package/dist/cubejs-client-core.umd.js +3 -1
- package/dist/cubejs-client-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/utils.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.60",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"eslint-plugin-node": "^5.2.1",
|
|
46
46
|
"jest": "^27"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7434929be3e99eb1d1fbb8a6b6c7f2427c6fcae6"
|
|
49
49
|
}
|
package/src/utils.js
CHANGED
|
@@ -288,10 +288,17 @@ export function movePivotItem(
|
|
|
288
288
|
if (id === 'measures') {
|
|
289
289
|
destinationIndex = lastIndex + 1;
|
|
290
290
|
} else if (
|
|
291
|
+
sourceAxis === destinationAxis &&
|
|
291
292
|
destinationIndex >= lastIndex &&
|
|
292
293
|
nextPivotConfig[destinationAxis][lastIndex] === 'measures'
|
|
293
294
|
) {
|
|
294
295
|
destinationIndex = lastIndex - 1;
|
|
296
|
+
} else if (
|
|
297
|
+
sourceAxis !== destinationAxis &&
|
|
298
|
+
destinationIndex > lastIndex &&
|
|
299
|
+
nextPivotConfig[destinationAxis][lastIndex] === 'measures'
|
|
300
|
+
) {
|
|
301
|
+
destinationIndex = lastIndex;
|
|
295
302
|
}
|
|
296
303
|
|
|
297
304
|
nextPivotConfig[sourceAxis].splice(sourceIndex, 1);
|