mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Ensure debug switches match loaded options (#11721)
This commit is contained in:
parent
b763754723
commit
f65ddccd6e
@ -162,10 +162,12 @@ export default function ObjectSettingsView({
|
||||
</div>
|
||||
</div>
|
||||
<Switch
|
||||
key={param}
|
||||
key={`${param}-${optionsLoaded}`}
|
||||
className="ml-1"
|
||||
id={param}
|
||||
checked={options && options[param]}
|
||||
checked={
|
||||
optionsLoaded ? options && options[param] : false
|
||||
}
|
||||
onCheckedChange={(isChecked) => {
|
||||
handleSetOption(param, isChecked);
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user