From: Grégoire Aubert Date: Fri, 24 Nov 2017 16:00:35 +0000 (+0100) Subject: Apply feedback X-Git-Tag: 7.0-RC1~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21e116729e9d8529f6a0a70dce996eb4fba3e1e1;p=sonarqube.git Apply feedback --- diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx index a2bcf4111cf..909767bfed9 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx +++ b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { some } from 'lodash'; import { QualityGate } from '../../api/quality-gates'; import Select from '../../components/controls/Select'; import { translate } from '../../helpers/l10n'; @@ -96,11 +95,6 @@ export default class Form extends React.PureComponent { isDefault: gate.isDefault })); - const hasDefault = some(allGates, gate => gate.isDefault); - if (!hasDefault) { - options.unshift({ value: '', label: translate('none') }); - } - return (