Skip to content

Commit 687824d

Browse files
authored
fix: table first cell (#300)
1 parent 2709a99 commit 687824d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/components/article/ArticleTable.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ const ArticleTable = ({ data, blockFormatting }) => {
1717
.replace(/\\\"/g, '')
1818
.split('],[')
1919
.map((row) => row.split(','))
20-
.map((row) => row.map((cell) => cell.slice(1, -1)));
20+
.map((row, index) =>
21+
row.map((cell, _index) =>
22+
index === 0 && _index === 0 ? cell.slice(0, -1) : cell.slice(1, -1),
23+
),
24+
);
2125

2226
const { hasHeaderColumn, hasHeaderRow } = blockFormatting;
2327

0 commit comments

Comments
 (0)