settings: fix general settings hanging on save for a non-admin user

This commit is contained in:
yuyoyuppe
2020-02-19 15:33:14 +03:00
committed by Andrey Nekrasov
parent d45b0dee10
commit 27f0782465
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ export class GeneralSettings extends React.Component <any, any> {
let result : any = {};
result[this.state.settings_key]= {
startup: this.startup_reference.get_value().value,
run_elevated: this.elevated_reference.get_value().value,
run_elevated: this.elevated_reference != null && this.elevated_reference.get_value().value,
theme: this.theme_reference.get_value().value,
enabled: enabled
};