1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-30 16:17:41 +01:00

fix missing poster issu

This commit is contained in:
Ashishprasa 2023-12-30 19:08:51 +05:30
parent 5ba66db7b4
commit bc3d6742fb
2 changed files with 9 additions and 11 deletions

View file

@ -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

View file

@ -67,6 +67,8 @@ export function SearchListPart({ searchQuery }: { searchQuery: string }) {
if (state.error) return <SearchSuffix failed />;
if (!results) return null;
// console.log(results);
return (
<div>
{results.length > 0 ? (
@ -76,9 +78,13 @@ export function SearchListPart({ searchQuery }: { searchQuery: string }) {
icon={Icons.SEARCH}
/>
<MediaGrid>
{results.map((v) => (
<WatchedMediaCard key={v.id.toString()} media={v} />
))}
{results.map((v) =>
v.poster === undefined ? (
""
) : (
<WatchedMediaCard key={v.id.toString()} media={v} />
),
)}
</MediaGrid>
</div>
) : null}