diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2022-09-15 10:21:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-19 20:03:08 +0000 |
commit | 50df88fef4dacda98a32e96ecc7e71cbf907d297 (patch) | |
tree | 234a7180f8f3f5476f1042723c6da2bd03e93129 /server/sonar-web/src/main | |
parent | 51d9d9dc532bff0fcfcc871dd02a117fba570aa2 (diff) | |
download | sonarqube-50df88fef4dacda98a32e96ecc7e71cbf907d297.tar.gz sonarqube-50df88fef4dacda98a32e96ecc7e71cbf907d297.zip |
NO JIRA Fix frontend bug
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx index f364f007cbf..db3d439ec0c 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx @@ -19,7 +19,6 @@ */ import { sortBy } from 'lodash'; import * as React from 'react'; -import Select from '../../../components/controls/Select'; import { changeProfileParent, createQualityProfile, @@ -27,6 +26,7 @@ import { } from '../../../api/quality-profiles'; import { ResetButtonLink, SubmitButton } from '../../../components/controls/buttons'; import Modal from '../../../components/controls/Modal'; +import Select from '../../../components/controls/Select'; import { Location } from '../../../components/hoc/withRouter'; import MandatoryFieldMarker from '../../../components/ui/MandatoryFieldMarker'; import MandatoryFieldsExplanation from '../../../components/ui/MandatoryFieldsExplanation'; @@ -198,7 +198,7 @@ export default class CreateProfileForm extends React.PureComponent<Props, State> value={languagesOptions.filter(o => o.value === selectedLanguage)} /> </div> - {selectedLanguage && profiles.length && ( + {selectedLanguage && profiles.length > 0 && ( <div className="modal-field"> <label htmlFor="create-profile-parent-input"> {translate('quality_profiles.parent')} |