diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 42992b290..1d924faaf 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -2128,6 +2128,8 @@ function PostDetailPopup({
{t("Key events")}
{(() => {
+ const eventClues = summary?.event_clues ?? [];
+
function renderKeyEventBody(event: PostKeyEvent, index: number): ReactNode {
return (
<>
@@ -2136,10 +2138,10 @@ function PostDetailPopup({
{t("Evidence")}: {event.evidence_text}
) : null}
- {summary.event_clues?.filter((clue) => clue.event_index === index).length ? (
+ {eventClues.filter((clue) => clue.event_index === index).length ? (
{t("Connected clues")}
- {summary.event_clues
+ {eventClues
.filter((clue) => clue.event_index === index)
.map((clue, clueIndex) => (