Skip to content

Commit

Permalink
fix(catalog): options from api
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Dec 4, 2019
1 parent f05a639 commit 66ba65a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/geo/src/lib/catalog/shared/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export class CatalogService {
// Catalogs from API
const catalogsFromApi$ = this.http
.get<Catalog[]>(`${apiUrl}/catalogs`)
.pipe(catchError((response: HttpErrorResponse) => EMPTY));
.pipe(
map(catalogs => catalogs.map((c: any) => Object.assign(c, c.options))),
catchError((response: HttpErrorResponse) => EMPTY)
);
observables$.push(catalogsFromApi$);
}

Expand Down

0 comments on commit 66ba65a

Please sign in to comment.