We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d9b1f5 commit caeb895Copy full SHA for caeb895
src/app/ui/presets.view.ts
@@ -73,11 +73,12 @@ export class PresetsView {
73
}
74
75
populateDropdownOptions (): void {
76
+ const currentPreset = state.networkPreset || 'allOn';
77
Object.keys (presets).forEach ((presetName) => {
78
const option = document.createElement ('option');
79
option.value = presetName;
80
option.text = presetName;
- option.selected = presetName === state.networkPreset;
81
+ option.selected = presetName === currentPreset;
82
this.dropdown.appendChild (option);
83
});
84
0 commit comments