mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix(vendor) inital value.
This commit is contained in:
@@ -16,7 +16,7 @@ export default function DrawerTemplateTable({ tableData, currencyCode }) {
|
||||
accessor: 'rate',
|
||||
accessor: ({ rate }) => <Money amount={rate} currency={currencyCode} />,
|
||||
disableSortBy: true,
|
||||
width: 50,
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
Header: formatMessage({ id: 'Qty' }),
|
||||
|
||||
@@ -94,8 +94,8 @@ function VendorForm({
|
||||
const initialValues = useMemo(
|
||||
() => ({
|
||||
...defaultInitialValues,
|
||||
currency_code: baseCurrency,
|
||||
...transformToForm(contactDuplicate || vendor, defaultInitialValues),
|
||||
...transformToForm(vendor, defaultInitialValues),
|
||||
...transformToForm(contactDuplicate, defaultInitialValues),
|
||||
}),
|
||||
[vendor, contactDuplicate, baseCurrency],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user