Remove current album from "more from this artist"
This commit is contained in:
parent
2072f9554e
commit
ed070850a4
1 changed files with 3 additions and 2 deletions
|
@ -187,8 +187,9 @@ export const AlbumDetailContent = ({ tableRef, background }: AlbumDetailContentP
|
|||
|
||||
const carousels = [
|
||||
{
|
||||
data: artistQuery?.data?.items,
|
||||
isHidden: !artistQuery?.data?.items.length,
|
||||
data: artistQuery?.data?.items.filter((a) => a.id !== detailQuery?.data?.id),
|
||||
isHidden: !artistQuery?.data?.items.filter((a) => a.id !== detailQuery?.data?.id)
|
||||
.length,
|
||||
loading: artistQuery?.isLoading || artistQuery.isFetching,
|
||||
pagination: {
|
||||
handleNextPage: () => handleNextPage('artist'),
|
||||
|
|
Reference in a new issue