fix trigger creation

when using the search effect to create a trigger, the prefilled object will not exist in the config yet
This commit is contained in:
Josh Hawkins 2025-11-08 13:06:16 -06:00
parent 073dddbf24
commit 7c6046316b

View File

@ -159,7 +159,7 @@ export default function CreateTriggerDialog({
}); });
const onSubmit = async (values: z.infer<typeof formSchema>) => { const onSubmit = async (values: z.infer<typeof formSchema>) => {
if (trigger) { if (trigger && existingTriggerNames.includes(trigger.name)) {
onEdit({ ...values }); onEdit({ ...values });
} else { } else {
onCreate( onCreate(