aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
index 94f12ae7720..9a5a332ac20 100644
--- a/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
+++ b/server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js
@@ -28,11 +28,7 @@ export default class LicenseRow extends React.PureComponent {
setLicense: React.PropTypes.func.isRequired
};
- handleSet(value) {
- return this.props.setLicense(this.props.license.key, value).catch(() => {
- /* do nothing */
- });
- }
+ handleSet = value => this.props.setLicense(this.props.license.key, value);
render() {
const { license } = this.props;
@@ -59,7 +55,7 @@ export default class LicenseRow extends React.PureComponent {
</div>
</td>
<td className="text-right">
- <LicenseChangeForm license={license} onChange={value => this.handleSet(value)} />
+ <LicenseChangeForm license={license} onChange={this.handleSet} />
</td>
</tr>
);