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:
parent
5ba66db7b4
commit
bc3d6742fb
2 changed files with 9 additions and 11 deletions
|
@ -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
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue