Browse Source
fix: resolve sending null tenant id problem as header
pull/6644/head
Mehmet Erim
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/interceptors/api.interceptor.ts
|
|
|
@ -42,7 +42,7 @@ export class ApiInterceptor implements HttpInterceptor { |
|
|
|
} |
|
|
|
|
|
|
|
const tenant = this.sessionState.getTenant(); |
|
|
|
if (!existingHeaders?.has('__tenant') && tenant) { |
|
|
|
if (!existingHeaders?.has('__tenant') && tenant?.id) { |
|
|
|
headers['__tenant'] = tenant.id; |
|
|
|
} |
|
|
|
|
|
|
|
|