From 6de0feda65a4510ce020c2993b1df433592a7dd2 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 26 Aug 2023 20:41:54 +0300 Subject: [PATCH] Filter movies by TmdbId and ImdbId in Select movies Modal --- .../InteractiveImport/Movie/SelectMovieModalContent.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/InteractiveImport/Movie/SelectMovieModalContent.tsx b/frontend/src/InteractiveImport/Movie/SelectMovieModalContent.tsx index a39333873..7ddaae57d 100644 --- a/frontend/src/InteractiveImport/Movie/SelectMovieModalContent.tsx +++ b/frontend/src/InteractiveImport/Movie/SelectMovieModalContent.tsx @@ -166,8 +166,11 @@ function SelectMovieModalContent(props: SelectMovieModalContentProps) { a.sortTitle.localeCompare(b.sortTitle) ); - return sorted.filter((item) => - item.title.toLowerCase().includes(filter.toLowerCase()) + return sorted.filter( + (item) => + item.title.toLowerCase().includes(filter.toLowerCase()) || + item.tmdbId.toString().includes(filter) || + item.imdbId?.includes(filter) ); }, [allMovies, filter]);