Skip to content

Commit

Permalink
chore: fix template switch being uncontrolled while data is fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Nov 14, 2023
1 parent ff8a832 commit 3731487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/model/panels/left/SystemTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function SystemTab() {
control={
<Switch
color="primary"
checked={isTemplate}
checked={isTemplate || false}
onChange={(val) => {
setTemplate({ id: modelId, isTemplate: !isTemplate });
}}
Expand Down

0 comments on commit 3731487

Please sign in to comment.