mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 22:06:31 +02:00
fix diff expand error on empty response
This commit is contained in:
@@ -63,7 +63,7 @@ class DiffExpander {
|
||||
return 0;
|
||||
}
|
||||
const changes = this.file.hunks![n].changes;
|
||||
if (changes[changes.length - 1].type === "normal") {
|
||||
if (changes[changes.length - 1]?.type === "normal") {
|
||||
if (n === this.file!.hunks!.length - 1) {
|
||||
return this.file!.hunks![this.file!.hunks!.length - 1].fullyExpanded ? 0 : -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user