Skip to content

Commit 10761cc

Browse files
committed
fix(table): handle on changing api notion responses
1 parent 37c60f4 commit 10761cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/routes/table.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
import {
23
fetchPageById,
34
fetchTableData,
@@ -30,7 +31,7 @@ export const getTableData = async (
3031

3132
const tableArr: RowType[] =
3233
table.result.reducerResults.collection_group_results.blockIds.map(
33-
(id: string) => table.recordMap.block[id]
34+
(id: string) => table.recordMap.block[id]?.value
3435
);
3536

3637
const tableData = tableArr.filter(

0 commit comments

Comments
 (0)