diff --git a/packages/gitbook/src/components/DocumentView/Table/Table.tsx b/packages/gitbook/src/components/DocumentView/Table/Table.tsx index cb57a9f2b..26c9c07b9 100644 --- a/packages/gitbook/src/components/DocumentView/Table/Table.tsx +++ b/packages/gitbook/src/components/DocumentView/Table/Table.tsx @@ -46,10 +46,7 @@ export function Table(props: BlockProps) { }; const withHeader = hasVisibleHeader(block, block.data.view); const withStickyHeader = - withHeader && - context.mode !== 'print' && - 'stickyHeader' in block.data.view && - block.data.view.stickyHeader === true; + withHeader && context.mode !== 'print' && block.data.view.stickyHeader === true; if (withStickyHeader) { return (