fix: allow saving edited PAT credential when reusing existing token

This commit is contained in:
Chris Scott committed 2026-06-21 09:25:48 -04:00
1 parent 55af93062a
commit 71ba7371bc
1 file changed
+1 -1
@@ -97,7 +97,7 @@ export function GitCredentialDialog({ open, onOpenChange, onSave, credential, re
}
if (formData.type === 'pat') {
if (!formData.token?.trim()) {
if (!formData.token?.trim() && !(credential?.token && !tokenEdited)) {
showToast.error('Token is required for PAT type')
return
}