Fix and remove unneccesary code.

This commit is contained in:
CentreMetre
2026-06-14 18:13:09 +01:00
parent 4e5428eee2
commit 47ac4dacf8

View File

@@ -8,7 +8,7 @@
* ``` * ```
* Then `User` would be passed as the generic. * Then `User` would be passed as the generic.
*/ */
export abstract class Table<TRow extends Object> { export abstract class Table<TRow extends object> {
table: HTMLTableElement; table: HTMLTableElement;
tableBody: HTMLTableSectionElement; tableBody: HTMLTableSectionElement;
@@ -139,7 +139,6 @@ export abstract class Table<TRow extends Object> {
break; break;
default: default:
const strValue = String(value)
cellValue = value != null ? String(value) : ""; cellValue = value != null ? String(value) : "";
} }
cell.textContent = cellValue; cell.textContent = cellValue;