fix: the rest of sdk rename issues (#7631)

This commit is contained in:
Frane Polić
2024-06-06 12:13:58 +02:00
committed by GitHub
parent e8df2431f8
commit c3b6fc1d8e
6 changed files with 7 additions and 7 deletions

View File

@@ -245,7 +245,7 @@ export const useCreateProduct = (
>
) => {
return useMutation({
mutationFn: (payload: any) => sdk.admin.products.create(payload),
mutationFn: (payload: any) => sdk.admin.product.create(payload),
onSuccess: (data: any, variables: any, context: any) => {
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() })
options?.onSuccess?.(data, variables, context)