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