mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-11 17:47:37 +03:00
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:
parent
073dddbf24
commit
7c6046316b
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user