1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix nesting

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
San 2022-05-30 20:45:57 -07:00 committed by GitHub
parent 623524549a
commit 9856a83694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);