fix: hide commitList if there are no commits

This commit is contained in:
ndom91 2024-10-14 15:09:56 +02:00 committed by Nico Domino
parent 49a4f2581f
commit 5e7e87cab1

View File

@ -36,14 +36,16 @@
name={currentSeries.branchName}
upstreamName={currentSeries.upstreamReference ? currentSeries.name : undefined}
/>
<StackingCommitList
remoteOnlyPatches={currentSeries.upstreamPatches}
patches={currentSeries.patches}
isUnapplied={false}
{reorderDropzoneManager}
{localCommitsConflicted}
{localAndRemoteCommitsConflicted}
/>
{#if currentSeries.upstreamPatches.length > 0 || currentSeries.patches.length > 0}
<StackingCommitList
remoteOnlyPatches={currentSeries.upstreamPatches}
patches={currentSeries.patches}
isUnapplied={false}
{reorderDropzoneManager}
{localCommitsConflicted}
{localAndRemoteCommitsConflicted}
/>
{/if}
</div>
{/each}