Skip to content

Commit 43432c4

Browse files
fix
1 parent 5ba5f0d commit 43432c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/diff-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ export class DiffFile {
17241724
const _l = this.getSplitLeftLine(i);
17251725
const _r = this.getSplitRightLine(i);
17261726

1727-
if (!_l.value && !_r.value) continue;
1727+
if (!_l?.value && !_r?.value) continue;
17281728

17291729
l.push({ ..._l, isHidden: false });
17301730
r.push({ ..._r, isHidden: false });
@@ -1733,7 +1733,7 @@ export class DiffFile {
17331733
for (let i = unifiedStart; i <= unifiedEnd; i++) {
17341734
const _u = this.getUnifiedLine(i);
17351735

1736-
if (!_u.value) continue;
1736+
if (!_u?.value) continue;
17371737

17381738
u.push({ ..._u, isHidden: false });
17391739
}

0 commit comments

Comments
 (0)