diff --git a/app/src/lib/components/FileDiff.svelte b/app/src/lib/components/FileDiff.svelte index 9d79a053d..492fc6c81 100644 --- a/app/src/lib/components/FileDiff.svelte +++ b/app/src/lib/components/FileDiff.svelte @@ -55,7 +55,7 @@
+{added} -{removed} - {#if section.hunk.lockedTo && commits} + {#if section.hunk.lockedTo && section.hunk.lockedTo.length > 0 && commits}
{ - const commit = commits.find((commit) => { - commit.id == lock.commitId; + const commit = commits.find((c) => { + return c.id == lock.commitId; }); const shortCommitId = commit?.id.slice(0, 7); if (commit) {