mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-23 10:23:09 +08:00
fix(ui): correct diff render condition logic (#23670)
This commit is contained in:
@@ -388,7 +388,7 @@ export const SessionReview = (props: SessionReviewProps) => {
|
||||
const file = diff.file
|
||||
|
||||
// binary files have empty diffs that we can't render
|
||||
const diffCanRender = () => diff.additions !== 0 && diff.deletions !== 0
|
||||
const diffCanRender = () => diff.additions !== 0 || diff.deletions !== 0
|
||||
|
||||
const expanded = createMemo(() => open().includes(file))
|
||||
const mounted = createMemo(() => expanded() && (!!store.visible[file] || pinned(file)))
|
||||
|
||||
Reference in New Issue
Block a user