aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/ComponentContainer.tsx')
-rw-r--r--server/sonar-web/src/main/js/app/components/ComponentContainer.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx
index 02ac49bfea0..e32bd7bf28a 100644
--- a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx
+++ b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx
@@ -32,11 +32,7 @@ import {
isPullRequest
} from '../../helpers/branch-like';
import { getPortfolioUrl } from '../../helpers/urls';
-import {
- fetchOrganization,
- registerBranchStatus,
- requireAuthorization
-} from '../../store/rootActions';
+import { registerBranchStatus, requireAuthorization } from '../../store/rootActions';
import { BranchLike } from '../../types/branch-like';
import { isPortfolioLike } from '../../types/component';
import { Task, TaskStatuses, TaskWarning } from '../../types/tasks';
@@ -47,7 +43,6 @@ import ComponentNav from './nav/component/ComponentNav';
interface Props {
children: React.ReactElement;
- fetchOrganization: (organization: string) => void;
location: Pick<Location, 'query' | 'pathname'>;
registerBranchStatus: (branchLike: BranchLike, component: string, status: T.Status) => void;
requireAuthorization: (router: Pick<Router, 'replace'>) => void;
@@ -379,6 +374,6 @@ export class ComponentContainer extends React.PureComponent<Props, State> {
}
}
-const mapDispatchToProps = { fetchOrganization, registerBranchStatus, requireAuthorization };
+const mapDispatchToProps = { registerBranchStatus, requireAuthorization };
export default withRouter(connect(null, mapDispatchToProps)(ComponentContainer));