mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
enforece same posterShape in Board rows
This commit is contained in:
parent
f45663b04d
commit
3b6736e864
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue