We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97268f commit 82217b2Copy full SHA for 82217b2
packages/cubejs-client-core/src/utils.js
@@ -288,10 +288,17 @@ export function movePivotItem(
288
if (id === 'measures') {
289
destinationIndex = lastIndex + 1;
290
} else if (
291
+ sourceAxis === destinationAxis &&
292
destinationIndex >= lastIndex &&
293
nextPivotConfig[destinationAxis][lastIndex] === 'measures'
294
) {
295
destinationIndex = lastIndex - 1;
296
+ } else if (
297
+ sourceAxis !== destinationAxis &&
298
+ destinationIndex > lastIndex &&
299
+ nextPivotConfig[destinationAxis][lastIndex] === 'measures'
300
+ ) {
301
+ destinationIndex = lastIndex;
302
}
303
304
nextPivotConfig[sourceAxis].splice(sourceIndex, 1);
0 commit comments