fix artist album search conditional render on no results

This commit is contained in:
jeffvli
2026-01-03 15:42:41 -08:00
parent dc0c6401de
commit 5ec025a70e
@@ -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>
); );
}; };