Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: handle inverted check state
  • Loading branch information
jaaydenh committed Jun 20, 2025
commit 2df36b448b7aab8896352be249bb850a0f825915
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
id="use_classic_parameter_flow"
name="use_classic_parameter_flow"
checked={!form.values.use_classic_parameter_flow}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update the function that passes to the API to flip the value too? Like on the request?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good catch, we do because someone decided to use an inverted state for this setting. fixed. =)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the onchange below

onChange={form.handleChange}
onChange={(event) =>
form.setFieldValue(
"use_classic_parameter_flow",
!event.currentTarget.checked,
)
}
disabled={false}
/>
}
Expand Down
Loading