mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 22:00:53 +08:00
fix(app): more defensive, handle no git
This commit is contained in:
@@ -123,11 +123,11 @@ export const SessionReview = (props: SessionReviewProps) => {
|
||||
diffStyle={diffStyle()}
|
||||
before={{
|
||||
name: diff.file!,
|
||||
contents: diff.before!,
|
||||
contents: typeof diff.before === "string" ? diff.before : "",
|
||||
}}
|
||||
after={{
|
||||
name: diff.file!,
|
||||
contents: diff.after!,
|
||||
contents: typeof diff.after === "string" ? diff.after : "",
|
||||
}}
|
||||
/>
|
||||
</Accordion.Content>
|
||||
|
||||
Reference in New Issue
Block a user