Commit 274c749f authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: pass item categories to related items

parent 0adbb56a
......@@ -7,7 +7,7 @@ import Grid from '../../elements/Grid/Grid'
import Separator from '../../elements/Separator/Separator'
import RelatedItem from '../RelatedItem/RelatedItem'
const RelatedItems = ({ items }) => {
const RelatedItems = ({ items, itemCategories }) => {
if (!items || !items.length) {
return null
}
......@@ -31,7 +31,7 @@ const RelatedItems = ({ items }) => {
>
{items.map(item => (
<li key={item.id}>
<RelatedItem item={item} />
<RelatedItem item={item} itemCategories={itemCategories} />
</li>
))}
</Grid>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment