Skip to content

Commit

Permalink
chore: add more polishes + reorg files
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan committed May 15, 2024
1 parent 7cccfe4 commit c92ac0e
Show file tree
Hide file tree
Showing 14 changed files with 488 additions and 427 deletions.
6 changes: 5 additions & 1 deletion packages/admin-next/dashboard/src/hooks/api/promotions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ export const usePromotionRuleValues = (
>
) => {
const { data, ...rest } = useQuery({
queryKey: promotionsQueryKeys.listRuleValues(ruleType, ruleValue, query),
queryKey: promotionsQueryKeys.listRuleValues(
ruleType,
ruleValue,
query || {}
),
queryFn: async () =>
client.promotions.listRuleValues(ruleType, ruleValue, query),
...options,
Expand Down
Loading

0 comments on commit c92ac0e

Please sign in to comment.