mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
SYNC: charts fix
This commit is contained in:
committed by
Diflow
parent
28439c010f
commit
cd505abb22
@@ -231,7 +231,7 @@ export class ChartProcessor {
|
||||
continue;
|
||||
}
|
||||
let addedChart: ProcessedChart = chart;
|
||||
if (chart.rowsAdded == 0) {
|
||||
if (chart.rowsAdded == 0 && !chart.isGivenDefinition) {
|
||||
continue; // skip empty charts
|
||||
}
|
||||
const sortOrder = chart.definition.xdef.sortOrder ?? 'ascKeys';
|
||||
@@ -277,6 +277,13 @@ export class ChartProcessor {
|
||||
};
|
||||
}
|
||||
|
||||
if (
|
||||
addedChart.definition.trimXCountLimit != null &&
|
||||
addedChart.bucketKeysOrdered.length > addedChart.definition.trimXCountLimit
|
||||
) {
|
||||
addedChart.bucketKeysOrdered = addedChart.bucketKeysOrdered.slice(0, addedChart.definition.trimXCountLimit);
|
||||
}
|
||||
|
||||
if (addedChart) {
|
||||
addedChart.availableColumns = this.availableColumns;
|
||||
this.charts.push(addedChart);
|
||||
|
||||
Reference in New Issue
Block a user