Skip to content

Commit

Permalink
fix: fix multiple indicator style error.
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Nov 5, 2023
1 parent 846d28d commit 841b51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/Indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { XAxis } from './XAxis'
import { YAxis } from './YAxis'

import { formatValue } from '../common/utils/format'
import { isValid, merge } from '../common/utils/typeChecks'
import { isValid, merge, clone } from '../common/utils/typeChecks'

import { ArcAttrs } from '../extension/figure/arc'
import { RectAttrs } from '../extension/figure/rect'
Expand Down Expand Up @@ -311,7 +311,7 @@ export default abstract class IndicatorImp<D = any> implements Indicator<D> {
this.visible = visible ?? true
this.minValue = minValue ?? null
this.maxValue = maxValue ?? null
this.styles = styles ?? {}
this.styles = clone(styles ?? {})
this.extendData = extendData
this.regenerateFigures = regenerateFigures ?? null
this.createTooltipDataSource = createTooltipDataSource ?? null
Expand Down

0 comments on commit 841b51a

Please sign in to comment.