Skip to content

Commit 9218714

Browse files
committed
fix(ui): make diffs prop optional in SessionReview
The diffs prop should be optional to better reflect the actual usage where diffs might not be available. This improves type safety and prevents runtime errors when diffs is undefined. Related to anomalyco#19270
1 parent 0113054 commit 9218714

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/ui/src/components/session-review.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface SessionReviewProps {
8585
classList?: Record<string, boolean | undefined>
8686
classes?: { root?: string; header?: string; container?: string }
8787
actions?: JSX.Element
88-
diffs: ReviewDiff[]
88+
diffs?: ReviewDiff[]
8989
onViewFile?: (file: string) => void
9090
readFile?: (path: string) => Promise<FileContent | undefined>
9191
}

0 commit comments

Comments
 (0)