enforece same posterShape in Board rows

This commit is contained in:
nklhrstv 2020-03-28 20:21:24 +02:00
parent f45663b04d
commit 3b6736e864

View file

@ -13,11 +13,11 @@ const mapBoardStateWithCtx = (board, ctx) => {
const content = catalog_resource.content.type === 'Ready' ?
{
type: 'Ready',
content: catalog_resource.content.content.map((metaItem) => ({
content: catalog_resource.content.content.map((metaItem, _, metaItems) => ({
type: metaItem.type,
name: metaItem.name,
poster: metaItem.poster,
posterShape: metaItem.posterShape,
posterShape: metaItems[0].posterShape,
href: `#/metadetails/${encodeURIComponent(metaItem.type)}/${encodeURIComponent(metaItem.id)}` // TODO this should redirect with videoId at some cases
}))
}