aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx b/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx
index 09c3f522345..640630d61ed 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx
@@ -19,11 +19,12 @@
*/
import { connect } from 'react-redux';
import { lazyLoadComponent } from 'sonar-ui-common/components/lazyLoadComponent';
-import { areThereCustomOrganizations, getCurrentUser, Store } from '../../../store/rootReducer';
+import { getAppState, getCurrentUser, Store } from '../../../store/rootReducer';
+import { ComponentQualifier } from '../../../types/component';
const stateToProps = (state: Store) => ({
currentUser: getCurrentUser(state),
- organizationsEnabled: areThereCustomOrganizations(state)
+ qualifiers: getAppState(state).qualifiers as ComponentQualifier[]
});
export default connect(stateToProps)(lazyLoadComponent(() => import('./AllProjects')));