fix: optional chain onEventClick to fix typecheck

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nathan Flurry 2026-02-23 12:15:29 -08:00
parent 4201bd204b
commit 2aad675389

View file

@ -77,7 +77,7 @@ const ToolItem = ({
className="tool-item-link"
onClick={(e) => {
e.stopPropagation();
onEventClick(entry.eventId!);
onEventClick?.(entry.eventId!);
}}
title="View in Events"
>