Fix onAuth binding to this

This commit is contained in:
Alex Gleason committed 2025-12-25 00:20:18 -06:00
1 parent 39652a85ca
commit 0fa4d3a199
2 files changed
+2 -1

No files matched your search

@@ -72,6 +72,7 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
setSyncSuccess(true);
setTimeout(() => setSyncSuccess(false), 2500);
} catch (err) {
console.warn(err);
const message = err instanceof Error ? err : new Error(`Failed to ${operation}`);
setError(message);
} finally {
+1 -1
View File
@@ -47,7 +47,7 @@ export class Git {
}
// Shared onAuth method
private onAuth(url: string) {
onAuth = (url: string) => {
if (this.credentials) {
return findCredentialsForRepo(url, this.credentials);
}