Merged in fix/SW-1048-table-ampersand (pull request #2579)

fix(SW-1048): handle & in table

* fix(SW-1048): handle & in table


Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
Matilda Landström
2025-07-30 12:44:58 +00:00
parent 2c2435af09
commit ed3df92aca

View File

@@ -28,6 +28,9 @@ export default function TableBlock({ data }: TableBlockProps) {
accessorKey: col.id,
header: col.header,
size: col.width,
cell: (info: any) => (
<div dangerouslySetInnerHTML={{ __html: info.getValue() }} />
),
}))
const hasHeader = columns.some((col) => col.header)