Skip to content

Commit

Permalink
Ensure debug switches match loaded options (#11721)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Jun 3, 2024
1 parent b763754 commit f65ddcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/views/settings/ObjectSettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
Expand Down

0 comments on commit f65ddcc

Please sign in to comment.