pull/1020/head
Audric Ackermann 6 years ago
parent 8f01d1dbb7
commit e48c7c2f3d
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -116,8 +116,14 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
const description = setting.description || '';
const comparisonValue = setting.comparisonValue || null;
const storedSetting = window.getSettingValue(setting.id, comparisonValue);
const value = storedSetting !== undefined ? storedSetting : setting.content && setting.content.defaultValue;
const storedSetting = window.getSettingValue(
setting.id,
comparisonValue
);
const value =
storedSetting !== undefined
? storedSetting
: setting.content && setting.content.defaultValue;
const sliderFn =
setting.type === SessionSettingType.Slider

Loading…
Cancel
Save