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 = [
|
const carousels = [
|
||||||
{
|
{
|
||||||
data: artistQuery?.data?.items,
|
data: artistQuery?.data?.items.filter((a) => a.id !== detailQuery?.data?.id),
|
||||||
isHidden: !artistQuery?.data?.items.length,
|
isHidden: !artistQuery?.data?.items.filter((a) => a.id !== detailQuery?.data?.id)
|
||||||
|
.length,
|
||||||
loading: artistQuery?.isLoading || artistQuery.isFetching,
|
loading: artistQuery?.isLoading || artistQuery.isFetching,
|
||||||
pagination: {
|
pagination: {
|
||||||
handleNextPage: () => handleNextPage('artist'),
|
handleNextPage: () => handleNextPage('artist'),
|
||||||
|
|
Reference in a new issue