Browse Source

fix(fe): Add Query Param to FE Api Request (#71779)

I missed one of the api requests our fe makes to the
OrganizationDetailsEndpoint it caused
https://sentry.sentry.io/issues/5425766246/
Raj Joshi 9 months ago
parent
commit
c8ded8a087

+ 1 - 1
static/app/views/integrationOrganizationLink/index.spec.tsx

@@ -31,7 +31,7 @@ describe('IntegrationOrganizationLink', () => {
     const org2Lite = pick(org2, ['slug', 'name', 'id']);
 
     getOrgsMock = MockApiClient.addMockResponse({
-      url: '/organizations/',
+      url: '/organizations/?include_feature_flags=1',
       body: [org1Lite, org2Lite],
     });
   });

+ 1 - 1
static/app/views/integrationOrganizationLink/index.tsx

@@ -57,7 +57,7 @@ export default class IntegrationOrganizationLink extends DeprecatedAsyncView<
   disableErrorReport = false;
 
   getEndpoints(): ReturnType<DeprecatedAsyncView['getEndpoints']> {
-    return [['organizations', '/organizations/']];
+    return [['organizations', '/organizations/?include_feature_flags=1']];
   }
 
   getTitle() {