.
This commit is contained in:
parent
6db80fbc07
commit
a8ea434ce1
@ -36,8 +36,6 @@ export const ProformaUpdateTaxEditor = ({
|
||||
}: ProformaUpdateTaxEditorProps) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
console.log(taxCtrl);
|
||||
|
||||
return (
|
||||
<FormSectionCard
|
||||
className={className}
|
||||
|
||||
@ -3,7 +3,7 @@ import { ErrorAlert, NotFoundCard, PageHeader } from "@erp/core/components";
|
||||
import { FormCommitButtonGroup, UnsavedChangesProvider } from "@erp/core/hooks";
|
||||
import { SelectCustomerDialog } from "@erp/customers";
|
||||
import { AppContent, AppHeader, BackHistoryButton } from "@repo/rdx-ui/components";
|
||||
import { useMemo } from "react";
|
||||
import { useEffect, useMemo } from "react";
|
||||
import { FormProvider } from "react-hook-form";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
@ -19,6 +19,12 @@ export const ProformaUpdatePage = () => {
|
||||
|
||||
const { updateCtrl, selectCustomerCtrl } = useUpdateProformaPageController();
|
||||
|
||||
useEffect(() => {
|
||||
console.log("[ProformaUpdatePage] isDirty:", updateCtrl.form.formState.isDirty);
|
||||
console.log("[ProformaUpdatePage] dirtyFields:", updateCtrl.form.formState.dirtyFields);
|
||||
console.log("[ProformaUpdatePage] values:", updateCtrl.form.getValues());
|
||||
}, [updateCtrl.form.formState.isDirty, updateCtrl.form.formState.dirtyFields, updateCtrl.form]);
|
||||
|
||||
if (updateCtrl.isLoading) {
|
||||
return <ProformaUpdateSkeleton />;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user