product-card чтобы запросы с undefined не сыпались
All checks were successful
Deploy / build (push) Successful in 46s
All checks were successful
Deploy / build (push) Successful in 46s
This commit is contained in:
parent
2b75aaf7bf
commit
7c811a4841
@ -6,5 +6,6 @@ export const useGetProductsDetail = (productId: MaybeRef<number>) => {
|
||||
return useQuery({
|
||||
queryKey: ['get-products-detail', productId],
|
||||
queryFn: () => getProductsDetail(unref(productId)),
|
||||
enabled: !!unref(productId),
|
||||
})
|
||||
}
|
||||
|
||||
@ -6,5 +6,6 @@ export const useGetProductsVariationsList = (productId: MaybeRef<number>) => {
|
||||
return useQuery({
|
||||
queryKey: ['get-products-variations-list', productId],
|
||||
queryFn: () => getProductsVariationsList(unref(productId)),
|
||||
enabled: !!unref(productId),
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user