Skip to content

Commit 2b51316

Browse files
author
Marko Petzold
committed
fix: ensure value is converted to string for background color in status box
1 parent 5ea2d85 commit 2b51316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widget-table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class WidgetTable extends LitElement {
108108
if (i % 2 === 0) p[c] = a[i + 1]
109109
return p
110110
}, {})
111-
return html`<div class="statusbox" style="background-color: ${stateMap[value]}"></div>`
111+
return html`<div class="statusbox" style="background-color: ${stateMap[String(value)]}"></div>`
112112
}
113113

114114
renderButton(cell: Values[number], colDef: Column) {

0 commit comments

Comments
 (0)