Skip to content

Commit

Permalink
fix: fix type error in base-series
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Jul 3, 2024
1 parent c06f204 commit 1744aea
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/vchart/src/series/base/base-series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1071,23 +1071,16 @@ export abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> imp

// check default compile keys
if (
currentKeys.some(k => {
if (defaultSeriesCompileCheckKeys[k]) {
return !isEqual(spec[k], prevSpec[k]);
}
currentKeys.some((k: string) => {
return defaultSeriesCompileCheckKeys[k] && !isEqual(spec[k], prevSpec[k]);
})
) {
result.reCompile = true;
}

if (
currentKeys.some(k => {
if (ignoreCheckKeys[k]) {
return false;
} else if (!isEqual(spec[k], prevSpec[k])) {
return true;
}
return false;
currentKeys.some((k: string) => {
return !ignoreCheckKeys[k] && !isEqual(spec[k], prevSpec[k]);
})
) {
result.reMake = true;
Expand Down

0 comments on commit 1744aea

Please sign in to comment.