diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx index 2a9fb8a5184..bb7b800e444 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx @@ -36,7 +36,6 @@ interface Props { header: string; onAddCondition: (condition: T.Condition) => void; onClose: () => void; - organization?: string; qualityGate: T.QualityGate; } @@ -66,15 +65,15 @@ export default class ConditionModal extends React.PureComponent<Props, State> { handleFormSubmit = () => { if (this.state.metric) { - const { condition, qualityGate, organization } = this.props; + const { condition, qualityGate } = this.props; const newCondition: T.Omit<T.Condition, 'id'> = { metric: this.state.metric.key, op: this.getSinglePossibleOperator(this.state.metric) || this.state.op, error: this.state.error }; const submitPromise = condition - ? updateCondition({ organization, id: condition.id, ...newCondition }) - : createCondition({ gateId: qualityGate.id, organization, ...newCondition }); + ? updateCondition({ id: condition.id, ...newCondition }) + : createCondition({ gateId: qualityGate.id, ...newCondition }); return submitPromise.then(this.props.onAddCondition); } return Promise.reject(); |