Fix expanding diffs without 'normal' line at the end

This commit is contained in:
René Pfeuffer
2020-06-01 17:00:47 +02:00
parent 2ad3773340
commit 4b54597e26
3 changed files with 112 additions and 8 deletions

View File

@@ -212,7 +212,8 @@ class DiffFile extends React.Component<Props, State> {
};
createLastHunkFooter = (expandableHunk: ExpandableHunk) => {
if (expandableHunk.maxExpandBottomRange != 0) {
console.log("maxExpandBottomRange:", expandableHunk.maxExpandBottomRange);
if (expandableHunk.maxExpandBottomRange !== 0) {
return (
<Decoration>
<HunkDivider>