mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: clear config only when axis changed
This commit is contained in:
parent
5464e847a1
commit
6a2130af1e
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ export function initializeConfig(config, spec) {
|
|||
config.chartChanged = true
|
||||
config.parameterChanged = false
|
||||
|
||||
const currentVersion = JSON.stringify(spec)
|
||||
// if spex.axis is changed, then need to clear persisted axis
|
||||
const currentVersion = JSON.stringify(spec.axis)
|
||||
if (!config.spec || !config.spec.version || config.spec.version !== currentVersion) {
|
||||
spec.version = currentVersion
|
||||
spec.initialized = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue