Skip to content

Commit

Permalink
fix(legacy-charts): tune chartoptions type check
Browse files Browse the repository at this point in the history
  • Loading branch information
thabarbados committed Apr 22, 2022
1 parent f2a33aa commit a88e6c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions legacy/src/Charts.js
Expand Up @@ -74,6 +74,7 @@ export function generateChart(chartId, chartType, chartController) {
computed: {
hasAnnotationPlugin() {
return (
typeof this.chartOptions === 'object' &&
Object.keys(this.chartOptions).length > 0 &&
'plugins' in this.chartOptions &&
Object.keys(this.chartOptions.plugins).length > 0 &&
Expand Down

0 comments on commit a88e6c2

Please sign in to comment.