mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 00:32:06 +00:00
map dates to date object
This commit is contained in:
parent
0aa6b1a6a7
commit
7b2ed24c37
1 changed files with 7 additions and 1 deletions
|
|
@ -194,7 +194,13 @@ const useCatalog = (urlParams, queryParams) => {
|
|||
}
|
||||
:
|
||||
null;
|
||||
const items = state.discover.content.type === 'Ready' ? state.discover.content.content : null;
|
||||
const items = state.discover.content.type === 'Ready' ?
|
||||
state.discover.content.content.map((metaItem) => ({
|
||||
...metaItem,
|
||||
released: new Date(metaItem.released)
|
||||
}))
|
||||
:
|
||||
null;
|
||||
const error = state.discover.content.type === 'Err' ? JSON.stringify(state.discover.content.content) : null;
|
||||
setDiscover([selectInputs, paginateInput, items, error]);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue