Skip to content

Commit 7f15722

Browse files
committed
fix: Ensure newly-added files show up as 'changed'
1 parent 98b0edc commit 7f15722

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export function diffTable(files, { showTotal, collapseUnchanged, omitUnchanged,
201201
totalDelta += delta;
202202

203203
const originalSize = size - delta;
204-
const isUnchanged = Math.abs(delta) < minimumChangeThreshold;
204+
const isUnchanged = Math.abs(delta) < minimumChangeThreshold && originalSize !== 0;
205205

206206
if (isUnchanged && omitUnchanged) continue;
207207

0 commit comments

Comments
 (0)