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