diff --git a/packages/main/src/components/ObjectPage/index.tsx b/packages/main/src/components/ObjectPage/index.tsx index 49d41badc2a..add376499d9 100644 --- a/packages/main/src/components/ObjectPage/index.tsx +++ b/packages/main/src/components/ObjectPage/index.tsx @@ -153,6 +153,7 @@ const ObjectPage: FC = forwardRef((props: ObjectPagePropTyp heightDiff = heightDiff > 0 ? heightDiff : 0; fillerDivDomRef.current.style.height = `${heightDiff}px`; requestAnimationFrame(() => { + if(!contentScrollContainer.current || !topHeader.current) return; const scrollbarContainerHeight = contentScrollContainer.current.getBoundingClientRect().height + topHeader.current.getBoundingClientRect().height;