mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47: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 (state.error) return <SearchSuffix failed />;
|
||||||
if (!results) return null;
|
if (!results) return null;
|
||||||
|
|
||||||
|
// console.log(results);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{results.length > 0 ? (
|
{results.length > 0 ? (
|
||||||
|
@ -76,9 +78,13 @@ export function SearchListPart({ searchQuery }: { searchQuery: string }) {
|
||||||
icon={Icons.SEARCH}
|
icon={Icons.SEARCH}
|
||||||
/>
|
/>
|
||||||
<MediaGrid>
|
<MediaGrid>
|
||||||
{results.map((v) => (
|
{results.map((v) =>
|
||||||
<WatchedMediaCard key={v.id.toString()} media={v} />
|
v.poster === undefined ? (
|
||||||
))}
|
""
|
||||||
|
) : (
|
||||||
|
<WatchedMediaCard key={v.id.toString()} media={v} />
|
||||||
|
),
|
||||||
|
)}
|
||||||
</MediaGrid>
|
</MediaGrid>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
Loading…
Reference in a new issue