mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: Estimate customize values
This commit is contained in:
@@ -49,7 +49,7 @@ function EstimatePaperTemplateFormConnected() {
|
||||
const { values } = useFormikContext<EstimateCustomizeValues>();
|
||||
const { brandingState } = useElementCustomizeContext()
|
||||
|
||||
const mergedProps: EstimatePaperTemplateProps = { ...values, ...brandingState }
|
||||
const mergedProps: EstimatePaperTemplateProps = { ...brandingState, ...values, }
|
||||
|
||||
return <EstimatePaperTemplate {...mergedProps} />;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ const withInvoicePreviewTemplateProps = <P extends object>(
|
||||
const { values } = useFormikContext<InvoiceCustomizeFormValues>();
|
||||
const { brandingState, } = useElementCustomizeContext();
|
||||
|
||||
const mergedProps: InvoicePaperTemplateProps = { ...brandingState, ...values }
|
||||
const mergedProps: InvoicePaperTemplateProps = { ...brandingState, ...values };
|
||||
|
||||
return <Component {...(props as P)} {...mergedProps} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user