mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix: allow saving edited PAT credential when reusing existing token
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user