diff --git a/client/src/features/sessionsV2/SessionShowPage/SessionIframe.tsx b/client/src/features/sessionsV2/SessionShowPage/SessionIframe.tsx index b18471c40b..b28afa235b 100644 --- a/client/src/features/sessionsV2/SessionShowPage/SessionIframe.tsx +++ b/client/src/features/sessionsV2/SessionShowPage/SessionIframe.tsx @@ -50,8 +50,8 @@ export default function SessionIframe({ return; } const headText = - ref.current.contentDocument?.head.querySelector("title")?.textContent ?? - ""; + ref.current.contentDocument?.head?.querySelector?.("title") + ?.textContent ?? ""; if (headText.includes("503 Service Temporarily Unavailable")) { setState({ isError: true, hasLoaded: false }); ref.current?.contentDocument?.location.reload();