mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(table): ensure dimensions appear before metrics in column order (#39346)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit 4f19bc4c5f)
This commit is contained in:
committed by
Michael S. Molina
parent
78d2fcbf49
commit
ffc242b5df
@@ -431,6 +431,11 @@ const processColumns = memoizeOne(function processColumns(
|
||||
formatter,
|
||||
config,
|
||||
};
|
||||
})
|
||||
.sort((a, b) => {
|
||||
const aIsMetric = a.isMetric || a.isPercentMetric ? 1 : 0;
|
||||
const bIsMetric = b.isMetric || b.isPercentMetric ? 1 : 0;
|
||||
return aIsMetric - bIsMetric;
|
||||
});
|
||||
return [metrics, percentMetrics, columns] as [
|
||||
typeof metrics,
|
||||
|
||||
Reference in New Issue
Block a user