fix(dashboard): stale params (#7630)

**What**
- fix places where we send wrong params (strict validation is now returning 400s for these)
- use SDK instead client for order details loader
This commit is contained in:
Frane Polić
2024-06-06 09:23:34 +00:00
committed by GitHub
parent 50ce223e4b
commit e8df2431f8
7 changed files with 9 additions and 10 deletions
@@ -14,7 +14,6 @@ export const useCustomerTableFilters = (
const { customer_groups } = useCustomerGroups(
{
limit: 1000,
expand: "",
},
{
enabled: !isGroupsExcluded,
@@ -10,13 +10,11 @@ export const useOrderTableFilters = (): Filter[] => {
const { regions } = useRegions({
limit: 1000,
fields: "id,name",
expand: "",
})
const { sales_channels } = useSalesChannels({
limit: 1000,
fields: "id,name",
expand: "",
})
let filters: Filter[] = []