mirror of
https://github.com/rustmailer/rustmailer.git
synced 2026-09-11 16:06:28 +00:00
fix: align forward params with backend, use Option<bool> for default handling
This commit is contained in:
@@ -85,7 +85,7 @@ export function EventHooksMutateDrawer({ open, onOpenChange, currentRow }: Props
|
||||
const httpForm = useForm<HttpEventHookForm>({
|
||||
resolver: zodResolver(httpFormSchema),
|
||||
defaultValues: currentRow ? {
|
||||
account_id: currentRow.account_id,
|
||||
account_id: currentRow.account_id ?? undefined,
|
||||
description: currentRow.description ?? undefined,
|
||||
enabled: currentRow.enabled,
|
||||
global: currentRow.global === 1,
|
||||
@@ -101,7 +101,7 @@ export function EventHooksMutateDrawer({ open, onOpenChange, currentRow }: Props
|
||||
const natsForm = useForm<NatsEventHookForm>({
|
||||
resolver: zodResolver(natsFormSchema),
|
||||
defaultValues: currentRow ? {
|
||||
account_id: currentRow.account_id,
|
||||
account_id: currentRow.account_id ?? undefined,
|
||||
description: currentRow.description,
|
||||
enabled: currentRow.enabled,
|
||||
global: currentRow.global === 1,
|
||||
|
||||
@@ -131,7 +131,8 @@ export function EmailActionDialog({
|
||||
include_all_attachments: false,
|
||||
send_control: {
|
||||
save_to_sent: false,
|
||||
dry_run: false
|
||||
dry_run: false,
|
||||
enable_tracking: false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -145,7 +146,8 @@ export function EmailActionDialog({
|
||||
include_all_attachments: false,
|
||||
send_control: {
|
||||
save_to_sent: false,
|
||||
dry_run: false
|
||||
dry_run: false,
|
||||
enable_tracking: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user