fix nesting
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,8 @@ import Dashboard from '../../utils/dashboard';
|
||||
|
||||
function onSubmit() {
|
||||
const form = this;
|
||||
return (loading.show(), ApiClient.getServerConfiguration().then(function(config) {
|
||||
loading.show();
|
||||
ApiClient.getServerConfiguration().then(function(config) {
|
||||
config.PreferredMetadataLanguage = form.querySelector('#selectLanguage').value;
|
||||
config.MetadataCountryCode = form.querySelector('#selectCountry').value;
|
||||
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
|
||||
|
||||
Reference in New Issue
Block a user