Skip to content

Commit 2d40b7f

Browse files
committed
refactor: review
1 parent 8a37bfa commit 2d40b7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/ui-components/src/util/table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export const parseTableStructure = (
8888
const thead = nodes.find(node => isTableElement(node, 'thead'));
8989
const tbody = nodes.find(node => isTableElement(node, 'tbody'));
9090

91-
if (!thead) throw new Error('Thead not found');
92-
if (!tbody) throw new Error('Tbody not found');
91+
if (!thead) throw new Error('Thead element not found');
92+
if (!tbody) throw new Error('Tbody element not found');
9393

9494
const columns = extractColumns(thead);
9595
const data = extractData(tbody, columns);

0 commit comments

Comments
 (0)