diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js b/server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js index ce2dddb2e21..eb0dccd6a41 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Conditions.js @@ -20,7 +20,6 @@ import _ from 'underscore'; import React from 'react'; import uniqBy from 'lodash/uniqBy'; - import ConditionsAlert from './ConditionsAlert'; import AddConditionForm from './AddConditionForm'; import Condition from './Condition'; @@ -107,7 +106,7 @@ export default class Conditions extends React.Component { <p>{translate('quality_gates.duplicated_conditions')}</p> <ul className="list-styled spacer-top"> {uniqDuplicates.map(d => ( - <li>{getLocalizedMetricName(d.metric)}</li> + <li key={d.metric.key}>{getLocalizedMetricName(d.metric)}</li> ))} </ul> </div> @@ -132,7 +131,7 @@ export default class Conditions extends React.Component { <th className="thin nowrap"> {translate('quality_gates.conditions.error')} </th> - {edit && <th></th>} + {edit && <th/>} </tr> </thead> <tbody> |