We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e817d commit ac3a1bcCopy full SHA for ac3a1bc
1 file changed
src/widget-value.ts
@@ -378,7 +378,9 @@ export class WidgetValue extends LitElement {
378
?active=${this.textActive}
379
style="color: ${this.themeTitleColor}"
380
>
381
- ${isNaN(ds.needleValue ?? 0) || ds.needleValue === undefined
+ ${ds.needleValue === undefined ||
382
+ ds.needleValue === null ||
383
+ isNaN(ds.needleValue)
384
? ''
385
: ds.needleValue.toFixed(Math.max(0, ds.precision ?? 0))}
386
<span class="unit paging" ?active=${this.textActive}>${ds.unit}</span>
0 commit comments