fix(dashboard): variants list query key (#7354)

This commit is contained in:
Frane Polić authored and GitHub committed 2024-05-17 10:18:36 +02:00
1 parent 31648b12ca
commit df8f4169e5
3 files changed
+7 -6

No files matched your search

@@ -110,7 +110,7 @@ export const useProductVariants = (
) => {
const { data, ...rest } = useQuery({
queryFn: () => client.products.listVariants(productId, query),
queryKey: variantsQueryKeys.list(query),
queryKey: variantsQueryKeys.list({ productId, ...query }),
...options,
})