diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsx index 88a177cb78a..bf00598efeb 100644 --- a/ui/src/pages/IssueDetail.tsx +++ b/ui/src/pages/IssueDetail.tsx @@ -588,6 +588,19 @@ export function IssueDetail() { [activity], ); + const memoizedLiveRunSlot = useMemo( + () => + hasLiveRuns ? ( + + ) : null, + [hasLiveRuns, issueId, issue?.companyId, liveRuns, activeRun], + ); + const issueCostSummary = useMemo(() => { let input = 0; let output = 0; @@ -1595,16 +1608,7 @@ export function IssueDetail() { onAdd={handleCommentAdd} imageUploadHandler={handleCommentImageUpload} onAttachImage={handleCommentAttachImage} - liveRunSlot={ - hasLiveRuns ? ( - - ) : null - } + liveRunSlot={memoizedLiveRunSlot} />