Skip to content

Commit

Permalink
fix: Properly set api url when editing git setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik003 committed Dec 12, 2023
1 parent f6e8fb9 commit dcbd760
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export class EditGitSettingsComponent implements OnInit, OnDestroy {
ngOnInit(): void {
this.gitInstancesService.gitInstance$
.pipe(filter(Boolean), untilDestroyed(this))
.subscribe((instance: GitInstance) => {
.subscribe((instance: GitInstance & { api_url?: string }) => {
if (instance.api_url) {
instance.apiURL = instance.api_url;
}

this.gitInstanceForm.controls.name.addAsyncValidators(
this.gitInstancesService.asyncNameValidator(instance),
);
Expand Down

0 comments on commit dcbd760

Please sign in to comment.