Skip to content

Commit

Permalink
fix: icm rest endpoint should be truthy to construct a valid api url (#…
Browse files Browse the repository at this point in the history
…1367)

When the browser does not have the apiToken cookie and the angular application is in SSR mode, the
ApiService#constructUrlForPath function is called before the getRestEndpoint selector is properly
initialized.
This leads to an incorrect ICM token retrieval URL
  • Loading branch information
tbouliere-datasolution authored Feb 8, 2023
1 parent fd6aace commit 61f9b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/services/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class ApiService {
return of(path);
}
return combineLatest([
this.store.pipe(select(getRestEndpoint)),
this.store.pipe(select(getRestEndpoint), whenTruthy()),
this.getLocale$(options),
this.getCurrency$(options),
of('/'),
Expand Down

0 comments on commit 61f9b0e

Please sign in to comment.