diff --git a/app/src/lib/components/CommitList.svelte b/app/src/lib/components/CommitList.svelte index 4c179b836..ca1689cb9 100644 --- a/app/src/lib/components/CommitList.svelte +++ b/app/src/lib/components/CommitList.svelte @@ -75,12 +75,12 @@ return 'remote'; } - function insertBlankCommit(commit: Commit | RemoteCommit, location: 'above' | 'below' = 'below') { + function insertBlankCommit(commitId: string, location: 'above' | 'below' = 'below') { if (!$branch || !$baseBranch) { console.error('Unable to insert commit'); return; } - branchController.insertBlankCommit($branch.id, commit.id, location == 'above' ? -1 : 1); + branchController.insertBlankCommit($branch.id, commitId, location == 'above' ? -1 : 1); } @@ -120,19 +120,24 @@ {/each} {/if} + + + {#if $localCommits.length > 0} - - - {#each $localCommits as commit, idx (commit.id)} 0 && idx + 1 == $localCommits.length ? 0.25 : 0} > - @@ -215,7 +220,7 @@ indexer={reorderDropzoneIndexer} /> -