Skip to content

Commit

Permalink
fix(colorize_states): Parameter was not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 27, 2021
1 parent f5f744f commit 28bb2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apexcharts-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class ChartsCard extends LitElement {
<div id="state__value">
<span
id="state"
style="${this._colors && this._colors.length > 0
style="${this._config?.header?.colorize_states && this._colors && this._colors.length > 0
? `color: ${this._colors[index % this._colors?.length]};`
: ''}"
>${this._lastState?.[index] === 0 ? 0 : this._lastState?.[index] || 'N/A'}</span
Expand Down

0 comments on commit 28bb2e2

Please sign in to comment.