Fix for merge button being incorrectly disabled

- disable only if checks exist and they have not succeeded
This commit is contained in:
Mattias Granlund 2024-03-12 21:46:25 +01:00
parent 9892e4f9c8
commit 9aa2115c12

View File

@ -208,11 +208,7 @@
<MergeButton <MergeButton
{projectId} {projectId}
wide wide
disabled={isFetching || disabled={isFetching || isUnapplied || !$pr$ || (!!checksStatus && !checksStatus.success)}
isUnapplied ||
!$pr$ ||
checksStatus === null ||
!checksStatus?.success}
loading={isMerging} loading={isMerging}
help="Merge pull request and refresh" help="Merge pull request and refresh"
on:click={async (e) => { on:click={async (e) => {