WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 38a6a67

Browse files
committed
Fix type conversion for repository ID in RepoDetailsResolverService
1 parent 1abb95a commit 38a6a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/services/resolvers/repo-details-resolver.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class RepoDetailsResolverService implements Resolve<RepoDetailsData> {
2323
| Promise<RepoDetailsData> {
2424
const id = route.params.id;
2525

26-
const repo$ = this.catalogueService.getLocalRepo(id);
26+
const repo$ = this.catalogueService.getLocalRepo(parseInt(id, 10));
2727

2828
return repo$.pipe(
2929
switchMap((repo) => forkJoin({

0 commit comments

Comments
 (0)