Skip to content

Commit

Permalink
Fix for merge button being incorrectly disabled
Browse files Browse the repository at this point in the history
- disable only if checks exist and they have not succeeded
  • Loading branch information
mtsgrd committed Mar 12, 2024
1 parent 9892e4f commit 9aa2115
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gitbutler-ui/src/lib/components/PullRequestCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 9aa2115

Please sign in to comment.