We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c9177 commit de00151Copy full SHA for de00151
public/app/core/services/backend_srv.ts
@@ -217,7 +217,10 @@ export class BackendSrv implements BackendService {
217
if (codeRabbitOrg) {
218
options.headers = options.headers ?? {};
219
options.headers['x-coderabbit-organization'] = codeRabbitOrg.id;
220
- options.headers['x-tenant-id'] = sessionStorage.getItem('firebaseTenantId');
+ const firebaseTenantId = sessionStorage.getItem('firebaseTenantId');
221
+ if(firebaseTenantId){
222
+ options.headers['x-tenant-id'] = firebaseTenantId;
223
+ }
224
}
225
226
if (options.url.startsWith('/')) {
0 commit comments