diff --git a/assets/src/components/pr/automations/CreatePrModal.tsx b/assets/src/components/pr/automations/CreatePrModal.tsx
index b3eb22078a..f47cd2135e 100644
--- a/assets/src/components/pr/automations/CreatePrModal.tsx
+++ b/assets/src/components/pr/automations/CreatePrModal.tsx
@@ -234,7 +234,7 @@ function CreatePrModalBase({
Provide some basic configuration for this PR:
{
- setValue(isChecked.toString())
- }}
- />
- ) : (
- {
- setValue(e.currentTarget.value)
- }}
- />
- )
+ switch (type) {
+ case ConfigurationType.Bool:
+ return (
+ {
+ setValue(isChecked.toString())
+ }}
+ />
+ )
+ case ConfigurationType.Enum:
+ return (
+
+ )
+ default:
+ return (
+ {
+ setValue(e.currentTarget.value)
+ }}
+ />
+ )
+ }
}