Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gudusol committed Jan 8, 2025
2 parents a45476f + c215ec1 commit f71ec66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/apis/domains/admin/useFetchOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getOrders = async (

export const useFetchOrders = (query: queryType) => {
return useInfiniteQuery({
queryKey: [QUERY_KEY.ORDER_LIST],
queryKey: [QUERY_KEY.ORDER_LIST, query],
queryFn: ({ pageParam = null }) => getOrders(query, pageParam?.toString()),
getNextPageParam: (lastPage) => {
return lastPage?.nextCursor === null ? undefined : lastPage?.nextCursor;
Expand Down
3 changes: 0 additions & 3 deletions src/pages/Admin/page/AdminPage/OrderCheck/OrderCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const OrderCheck = () => {
deliveryDate: "",
productName: "",
deliveryStatus: "",
nextCursor: "",
});

const { data, fetchNextPage, hasNextPage, isFetchingNextPage } =
Expand Down Expand Up @@ -69,7 +68,6 @@ const OrderCheck = () => {
deliveryDate: deliveryDateRef.current?.format("YYYY-MM-DD") || "",
productName: productRef.current?.value || "",
deliveryStatus: statusRef.current?.value || "",
nextCursor: "",
};
setQuery(newQuery);
};
Expand All @@ -85,7 +83,6 @@ const OrderCheck = () => {
deliveryDate: "",
productName: "",
deliveryStatus: "",
nextCursor: "",
});
};

Expand Down

0 comments on commit f71ec66

Please sign in to comment.