mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
refactor: vendors alerts.
This commit is contained in:
@@ -14,9 +14,9 @@ import { compose } from 'utils';
|
||||
function VendorFormPage({
|
||||
// #withVendorActions
|
||||
requestFetchVendorsTable,
|
||||
requsetFetchVendor,
|
||||
requestFetchVendor,
|
||||
|
||||
// #wihtCurrenciesActions
|
||||
// #withCurrenciesActions
|
||||
requestFetchCurrencies,
|
||||
}) {
|
||||
const { id } = useParams();
|
||||
@@ -35,7 +35,7 @@ function VendorFormPage({
|
||||
// Handle fetch vendor details.
|
||||
const fetchVendor = useQuery(
|
||||
['vendor', id],
|
||||
(_id, vendorId) => requsetFetchVendor(vendorId),
|
||||
(_id, vendorId) => requestFetchVendor(vendorId),
|
||||
{ enabled: id && id },
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user