mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(frontend): Spelling (#19676)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -478,7 +478,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
// eslint-disable-next-line react/no-danger
|
||||
return <StyledCell {...cellProps} dangerouslySetInnerHTML={html} />;
|
||||
}
|
||||
// If cellProps renderes textContent already, then we don't have to
|
||||
// If cellProps renders textContent already, then we don't have to
|
||||
// render `Cell`. This saves some time for large tables.
|
||||
return (
|
||||
<StyledCell {...cellProps}>
|
||||
|
||||
@@ -71,12 +71,12 @@ const buildQuery: BuildQuery<TableChartFormData> = (
|
||||
|
||||
if (queryMode === QueryMode.aggregate) {
|
||||
metrics = metrics || [];
|
||||
// orverride orderby with timeseries metric when in aggregation mode
|
||||
// override orderby with timeseries metric when in aggregation mode
|
||||
if (sortByMetric) {
|
||||
orderby = [[sortByMetric, !orderDesc]];
|
||||
} else if (metrics?.length > 0) {
|
||||
// default to ordering by first metric in descending order
|
||||
// when no "sort by" metric is set (regargless if "SORT DESC" is set to true)
|
||||
// when no "sort by" metric is set (regardless if "SORT DESC" is set to true)
|
||||
orderby = [[metrics[0], false]];
|
||||
}
|
||||
// add postprocessing for percent metrics only when in aggregation mode
|
||||
|
||||
Reference in New Issue
Block a user