Skip to content

Commit

Permalink
fix(gn4-api): cast getSourceByType to CatalogSource[]
Browse files Browse the repository at this point in the history
There is an issue in the openapi spec about the response model
  • Loading branch information
fgravin committed Dec 9, 2023
1 parent 48249a9 commit 564de95
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/feature/catalog/src/lib/sources/sources.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import { CatalogSource } from './sources.model'
providedIn: 'root',
})
export class SourcesService {
sources$: Observable<CatalogSource[]> = this.sourcesApiService
.getSources1()
.pipe(shareReplay())
sources$: Observable<CatalogSource[]> = (
this.sourcesApiService.getSourcesByType('harvester') as Observable<
CatalogSource[]
>
).pipe(shareReplay())

constructor(
private sourcesApiService: SourcesApiService,
Expand Down

0 comments on commit 564de95

Please sign in to comment.