This commit is contained in:
David Arranz 2025-10-02 19:00:55 +02:00
parent a845ccd820
commit 06d5b269d1

View File

@ -1,4 +1,4 @@
import { FieldErrors, useFormContext, useWatch } from "react-hook-form"; import { FieldErrors, useFormContext } from "react-hook-form";
import { FormDebug } from "@erp/core/components"; import { FormDebug } from "@erp/core/components";
import { useTranslation } from "../../i18n"; import { useTranslation } from "../../i18n";
@ -25,13 +25,6 @@ export const CustomerInvoiceEditForm = ({
const { t } = useTranslation(); const { t } = useTranslation();
const form = useFormContext<CustomerInvoiceFormData>(); const form = useFormContext<CustomerInvoiceFormData>();
const { defaultValues: initialValues } = form.formState;
initialValues.recip
const prueba = useWatch({
control: form.control,
});
return ( return (
<form id={formId} onSubmit={form.handleSubmit(onSubmit, onError)}> <form id={formId} onSubmit={form.handleSubmit(onSubmit, onError)}>
<section className={className}> <section className={className}>