diff --git a/.changeset/proud-bulldogs-impress.md b/.changeset/proud-bulldogs-impress.md new file mode 100644 index 00000000000..b37cc856b1a --- /dev/null +++ b/.changeset/proud-bulldogs-impress.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Now product links on the collection points to the correct url. diff --git a/src/collections/components/CollectionProducts/ProductTableItem.tsx b/src/collections/components/CollectionProducts/ProductTableItem.tsx index d7fb337fb58..a7630658ea9 100644 --- a/src/collections/components/CollectionProducts/ProductTableItem.tsx +++ b/src/collections/components/CollectionProducts/ProductTableItem.tsx @@ -1,5 +1,6 @@ import { ChannelsAvailabilityDropdown } from "@dashboard/components/ChannelsAvailabilityDropdown"; import { GridTable } from "@dashboard/components/GridTable"; +import Link from "@dashboard/components/Link"; import Drag from "@dashboard/icons/Drag"; import { productUrl } from "@dashboard/products/urls"; import { useSortable } from "@dnd-kit/sortable"; @@ -70,38 +71,34 @@ export const ProductTableItem = ({ - - {product?.thumbnail ? ( - - - - ) : ( - - )} - {product?.name} - + + + {product?.thumbnail ? ( + + + + ) : ( + + )} + {product?.name} + + - - {product?.productType.name || } - + + + {product?.productType.name || } + + - + {product && !product?.channelListings?.length ? ( "-" ) : product?.channelListings !== undefined ? (