mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Remove current album from "more from this artist"
This commit is contained in:
@@ -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 New Issue
Block a user