mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Fix onAuth binding to this
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -72,6 +72,7 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
|
|||||||
setSyncSuccess(true);
|
setSyncSuccess(true);
|
||||||
setTimeout(() => setSyncSuccess(false), 2500);
|
setTimeout(() => setSyncSuccess(false), 2500);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.warn(err);
|
||||||
const message = err instanceof Error ? err : new Error(`Failed to ${operation}`);
|
const message = err instanceof Error ? err : new Error(`Failed to ${operation}`);
|
||||||
setError(message);
|
setError(message);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ export class Git {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Shared onAuth method
|
// Shared onAuth method
|
||||||
private onAuth(url: string) {
|
onAuth = (url: string) => {
|
||||||
if (this.credentials) {
|
if (this.credentials) {
|
||||||
return findCredentialsForRepo(url, this.credentials);
|
return findCredentialsForRepo(url, this.credentials);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user