fix(dashboard): PL creation - customers table customers count (#9237)
**What** - display the number of customers in a group in the price list create flow --- CLOSES https://github.com/medusajs/medusa/issues/9210 FIXES CC-517
This commit is contained in:
1 parent
39034e2249
commit
5d16133a93
1 file changed
+6
-3
+6
-3
@@ -59,9 +59,12 @@ export const PriceListCustomerGroupRuleForm = ({
|
|||||||
prefix: PREFIX,
|
prefix: PREFIX,
|
||||||
})
|
})
|
||||||
const { customer_groups, count, isLoading, isError, error } =
|
const { customer_groups, count, isLoading, isError, error } =
|
||||||
useCustomerGroups(searchParams, {
|
useCustomerGroups(
|
||||||
placeholderData: keepPreviousData,
|
{ ...searchParams, fields: "customers.id" },
|
||||||
})
|
{
|
||||||
|
placeholderData: keepPreviousData,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
const updater: OnChangeFn<RowSelectionState> = (value) => {
|
const updater: OnChangeFn<RowSelectionState> = (value) => {
|
||||||
const state = typeof value === "function" ? value(rowSelection) : value
|
const state = typeof value === "function" ? value(rowSelection) : value
|
||||||
|
|||||||
Reference in new issue
Block a user