mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 09:09:48 +00:00
fix(webapp): change the default from/to date values of reports
This commit is contained in:
@@ -11,7 +11,10 @@ const ARAgingSummaryContext = createContext();
|
||||
*/
|
||||
function ARAgingSummaryProvider({ filter, ...props }) {
|
||||
// Transformes the filter from to the url query.
|
||||
const query = useMemo(() => transformFilterFormToQuery(filter), [filter]);
|
||||
const requestQuery = useMemo(
|
||||
() => transformFilterFormToQuery(filter),
|
||||
[filter],
|
||||
);
|
||||
|
||||
// A/R aging summary sheet context.
|
||||
const {
|
||||
@@ -19,11 +22,10 @@ function ARAgingSummaryProvider({ filter, ...props }) {
|
||||
isLoading: isARAgingLoading,
|
||||
isFetching: isARAgingFetching,
|
||||
refetch,
|
||||
} = useARAgingSummaryReport(query, { keepPreviousData: true });
|
||||
} = useARAgingSummaryReport(requestQuery, { keepPreviousData: true });
|
||||
|
||||
const provider = {
|
||||
ARAgingSummary,
|
||||
|
||||
isARAgingLoading,
|
||||
isARAgingFetching,
|
||||
refetch,
|
||||
|
||||
Reference in New Issue
Block a user