mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: DON'T reset current chart
This commit is contained in:
parent
ae1891ffcc
commit
666025a72e
1 changed files with 1 additions and 2 deletions
|
|
@ -193,12 +193,11 @@ export function clearAxisConfig(config) {
|
|||
delete config.axis /** Object: persisted axis for each chart */
|
||||
}
|
||||
|
||||
export function initAxisConfig(config, remove) {
|
||||
export function initAxisConfig(config) {
|
||||
if (!config.axis) { config.axis = {} }
|
||||
|
||||
const spec = config.spec
|
||||
const availableCharts = getAvailableChartNames(spec.charts)
|
||||
config.chart.current = availableCharts[0];
|
||||
|
||||
if (!config.axisSpecs) { config.axisSpecs = {}; }
|
||||
for (let i = 0; i < availableCharts.length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue