mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
VideosList search: search only by title
This commit is contained in:
parent
eb3b4386d1
commit
1c17437847
1 changed files with 1 additions and 5 deletions
|
|
@ -72,11 +72,7 @@ const VideosList = ({ className, metaResource }) => {
|
|||
<div className={styles['videos-scroll-container']}>
|
||||
{videosForSeason
|
||||
.filter((video) => {
|
||||
return search.length === 0 ||
|
||||
(
|
||||
(typeof video.title === 'string' && video.title.toLowerCase().includes(search.toLowerCase())) ||
|
||||
(video.released.toLocaleString(undefined, { year: '2-digit', month: 'short', day: 'numeric' }).toLowerCase().includes(search.toLowerCase()))
|
||||
);
|
||||
return search.length === 0 || (typeof video.title === 'string' && video.title.toLowerCase().includes(search.toLowerCase()));
|
||||
})
|
||||
.map((video, index) => (
|
||||
<Video
|
||||
|
|
|
|||
Loading…
Reference in a new issue