Skip to content

Commit

Permalink
Fix diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 9, 2022
1 parent 1c55e44 commit 3002b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/compare/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { haveSimilarMeans } from '../../stats/similar.js'
export const addCombinationsDiff = function (result, history) {
const [sinceResult] = history

if (result.id === sinceResult.id) {
if (result.id === sinceResult.id || history.length === 1) {
return result
}

Expand Down

0 comments on commit 3002b00

Please sign in to comment.