mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix(Sidebar): scroll to top once the sidebar be closed.
This commit is contained in:
@@ -29,7 +29,7 @@ function InvoiceFormProvider({ invoiceId, ...props }) {
|
||||
// Fetches the estimate by the given id.
|
||||
const {
|
||||
data: estimate,
|
||||
isFetching: isEstimateFetching,
|
||||
isLoading: isEstimateLoading,
|
||||
} = useEstimate(estimateId, { enabled: !!estimateId });
|
||||
|
||||
const newInvoice = !isEmpty(estimate)
|
||||
@@ -97,7 +97,7 @@ function InvoiceFormProvider({ invoiceId, ...props }) {
|
||||
isInvoiceLoading ||
|
||||
isItemsLoading ||
|
||||
isCustomersLoading ||
|
||||
isEstimateFetching ||
|
||||
isEstimateLoading ||
|
||||
isSettingsLoading
|
||||
}
|
||||
name={'invoice-form'}
|
||||
|
||||
Reference in New Issue
Block a user