From bc3d6742fb3a7dba37ed751798e245b09bb2df18 Mon Sep 17 00:00:00 2001 From: Ashishprasa Date: Sat, 30 Dec 2023 19:08:51 +0530 Subject: [PATCH] fix missing poster issu --- example.env | 8 -------- src/pages/parts/search/SearchListPart.tsx | 12 +++++++++--- 2 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 example.env diff --git a/example.env b/example.env deleted file mode 100644 index 38c690a5..00000000 --- a/example.env +++ /dev/null @@ -1,8 +0,0 @@ -VITE_TMDB_READ_API_KEY=... -VITE_OPENSEARCH_ENABLED=false - -# make sure the cors proxy url does NOT have a slash at the end -VITE_CORS_PROXY_URL=... - -# make sure the domain does NOT have a slash at the end -VITE_APP_DOMAIN=http://localhost:5173 diff --git a/src/pages/parts/search/SearchListPart.tsx b/src/pages/parts/search/SearchListPart.tsx index 270d05f1..ea9a5f43 100644 --- a/src/pages/parts/search/SearchListPart.tsx +++ b/src/pages/parts/search/SearchListPart.tsx @@ -67,6 +67,8 @@ export function SearchListPart({ searchQuery }: { searchQuery: string }) { if (state.error) return ; if (!results) return null; + // console.log(results); + return (
{results.length > 0 ? ( @@ -76,9 +78,13 @@ export function SearchListPart({ searchQuery }: { searchQuery: string }) { icon={Icons.SEARCH} /> - {results.map((v) => ( - - ))} + {results.map((v) => + v.poster === undefined ? ( + "" + ) : ( + + ), + )}
) : null}