diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 001559c7c1cd6c4ca4d427e95c56cf6c37f372a2..ec945a595de32452a36c05e498f3b202e4782558 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -232,7 +232,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp hasCustomCommitMessage: !!commitMessage?.trim(), hasWorkingTreeChanges: !!gitStatus?.hasWorkingTreeChanges, forcePushOnly: forcePushOnlyProgress, - pushTarget, + ...(pushTarget ? { pushTarget } : {}), }); const progressToastId = toastManager.add({ type: "loading", @@ -325,6 +325,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp }, [ api, + gitStatus?.branch, gitStatus?.hasWorkingTreeChanges, gitStatus?.openPr?.url, isDefaultBranch,