mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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,6 +1332,7 @@ const ArtistAlbums = ({ albumsQuery }: ArtistAlbumsProps) => {
|
|||||||
/>
|
/>
|
||||||
<GroupingTypeSelector />
|
<GroupingTypeSelector />
|
||||||
</Group>
|
</Group>
|
||||||
|
{releaseTypeEntries.length > 0 && (
|
||||||
<div className={styles.albumSectionContainer} ref={cq.ref}>
|
<div className={styles.albumSectionContainer} ref={cq.ref}>
|
||||||
{cq.isCalculated && (
|
{cq.isCalculated && (
|
||||||
<LayoutGroup>
|
<LayoutGroup>
|
||||||
@@ -1353,6 +1350,7 @@ const ArtistAlbums = ({ albumsQuery }: ArtistAlbumsProps) => {
|
|||||||
</LayoutGroup>
|
</LayoutGroup>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user