Skip to content

Commit 71ba737

Browse files
fix: allow saving edited PAT credential when reusing existing token
1 parent 55af930 commit 71ba737

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/settings/GitCredentialDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function GitCredentialDialog({ open, onOpenChange, onSave, credential, re
9797
}
9898

9999
if (formData.type === 'pat') {
100-
if (!formData.token?.trim()) {
100+
if (!formData.token?.trim() && !(credential?.token && !tokenEdited)) {
101101
showToast.error('Token is required for PAT type')
102102
return
103103
}

0 commit comments

Comments
 (0)