diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx index 0bfaaaf6668..a3b76a64d01 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx @@ -27,15 +27,14 @@ import { getQualityGatesUrl } from '../../../helpers/urls'; interface Props { onDelete: () => Promise<void>; - organization?: string; qualityGate: T.QualityGate; router: Pick<Router, 'push'>; } -class DeleteQualityGateForm extends React.PureComponent<Props> { +export class DeleteQualityGateForm extends React.PureComponent<Props> { onDelete = () => { - const { organization, qualityGate } = this.props; - return deleteQualityGate({ id: qualityGate.id, organization }) + const { qualityGate } = this.props; + return deleteQualityGate({ id: qualityGate.id }) .then(this.props.onDelete) .then(() => { this.props.router.push(getQualityGatesUrl()); |