fix(git-panel): add error handling for commit diff fetch

This commit is contained in:
Haileyesus
2026-02-23 11:47:29 +03:00
parent e2951b66fa
commit 63dc3ce019

View File

@@ -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],