mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-03 21:17:50 +00:00
fix(git-panel): add error handling for commit diff fetch
This commit is contained in:
@@ -38,7 +38,9 @@ export default function HistoryView({
|
||||
|
||||
// Load commit diff lazily only the first time a commit is expanded.
|
||||
if (isExpanding && !commitDiffs[commitHash]) {
|
||||
void onFetchCommitDiff(commitHash);
|
||||
onFetchCommitDiff(commitHash).catch((err) => {
|
||||
console.error('Failed to fetch commit diff:', err);
|
||||
});
|
||||
}
|
||||
},
|
||||
[commitDiffs, expandedCommits, onFetchCommitDiff, setExpandedCommits],
|
||||
|
||||
Reference in New Issue
Block a user