aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/home
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-25 14:10:40 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:44:59 +0100
commit1355d080cfa97eadfde70e6945e30f49a38ac28e (patch)
tree2e5b41f5898b00249f51bfd5b5267580c2e1b2ae /server/sonar-web/src/main/js/apps/quality-profiles/home
parenta289d7ab1248e465064129dc0e4b8d858fee2b79 (diff)
downloadsonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.tar.gz
sonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.zip
Update prettier to last version
* Prettier format all modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/home')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/CreateProfileForm.tsx31
1 files changed, 15 insertions, 16 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 7b19310ca2f..e129058fb20 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
@@ -180,22 +180,21 @@ export default class CreateProfileForm extends React.PureComponent<Props, State>
value={selectedLanguage}
/>
</div>
- {selectedLanguage &&
- profiles.length && (
- <div className="modal-field">
- <label htmlFor="create-profile-parent">
- {translate('quality_profiles.parent')}
- </label>
- <Select
- clearable={true}
- id="create-profile-parent"
- name="parentKey"
- onChange={this.handleParentChange}
- options={profiles}
- value={this.state.parent || ''}
- />
- </div>
- )}
+ {selectedLanguage && profiles.length && (
+ <div className="modal-field">
+ <label htmlFor="create-profile-parent">
+ {translate('quality_profiles.parent')}
+ </label>
+ <Select
+ clearable={true}
+ id="create-profile-parent"
+ name="parentKey"
+ onChange={this.handleParentChange}
+ options={profiles}
+ value={this.state.parent || ''}
+ />
+ </div>
+ )}
{importers.map(importer => (
<div
className="modal-field spacer-bottom js-importer"