Browse Source

fix: resolve sending null tenant id problem as header

pull/6644/head
Mehmet Erim 5 years ago
committed by GitHub
parent
commit
e3afcf7c70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/core/src/lib/interceptors/api.interceptor.ts

2
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;
}

Loading…
Cancel
Save