mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix artist album search conditional render on no results
This commit is contained in:
@@ -1290,10 +1290,6 @@ const ArtistAlbums = ({ albumsQuery }: ArtistAlbumsProps) => {
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (releaseTypeEntries.length === 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack gap="md">
|
<Stack gap="md">
|
||||||
<Group gap="sm" w="100%">
|
<Group gap="sm" w="100%">
|
||||||
@@ -1336,23 +1332,25 @@ const ArtistAlbums = ({ albumsQuery }: ArtistAlbumsProps) => {
|
|||||||
/>
|
/>
|
||||||
<GroupingTypeSelector />
|
<GroupingTypeSelector />
|
||||||
</Group>
|
</Group>
|
||||||
<div className={styles.albumSectionContainer} ref={cq.ref}>
|
{releaseTypeEntries.length > 0 && (
|
||||||
{cq.isCalculated && (
|
<div className={styles.albumSectionContainer} ref={cq.ref}>
|
||||||
<LayoutGroup>
|
{cq.isCalculated && (
|
||||||
{releaseTypeEntries.map(({ albums, displayName, releaseType }) => (
|
<LayoutGroup>
|
||||||
<AlbumSection
|
{releaseTypeEntries.map(({ albums, displayName, releaseType }) => (
|
||||||
albums={albums}
|
<AlbumSection
|
||||||
controls={controls}
|
albums={albums}
|
||||||
cq={cq}
|
controls={controls}
|
||||||
key={releaseType}
|
cq={cq}
|
||||||
releaseType={releaseType}
|
key={releaseType}
|
||||||
rows={rows}
|
releaseType={releaseType}
|
||||||
title={displayName}
|
rows={rows}
|
||||||
/>
|
title={displayName}
|
||||||
))}
|
/>
|
||||||
</LayoutGroup>
|
))}
|
||||||
)}
|
</LayoutGroup>
|
||||||
</div>
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user