From 3b6736e864e3169cd5fee0c35df3fb11921219ad Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 20:21:24 +0200 Subject: [PATCH] enforece same posterShape in Board rows --- src/routes/Board/useBoard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Board/useBoard.js b/src/routes/Board/useBoard.js index 2ec97881a..8064c6da7 100644 --- a/src/routes/Board/useBoard.js +++ b/src/routes/Board/useBoard.js @@ -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 })) }