From b782f5058934fb895d3e130813f8df34c4c2207d Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 17 Apr 2025 19:06:51 -0400 Subject: [PATCH] fix: prevent visual separation of tracks on same disc Removes the leftover `releaseDate` check from the `firstTracksOfDiscs` calculation in `SongDatagridBody`. This check caused unnecessary `DiscSubtitleRow` insertions when tracks on the same disc had different release dates, leading to an incorrect visual grouping that resembled a multi-disc layout. This change ensures disc subtitles are only shown when the actual `discNumber` changes, correcting the UI presentation issue reported in issue #3720 after PR #3975. --- ui/src/common/SongDatagrid.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/common/SongDatagrid.jsx b/ui/src/common/SongDatagrid.jsx index f163d7d71..29e8e2b2d 100644 --- a/ui/src/common/SongDatagrid.jsx +++ b/ui/src/common/SongDatagrid.jsx @@ -238,8 +238,7 @@ const SongDatagridBody = ({ foundSubtitle = foundSubtitle || data[id].discSubtitle if ( acc.length === 0 || - (last && data[id].discNumber !== data[last].discNumber) || - (last && data[id].releaseDate !== data[last].releaseDate) + (last && data[id].discNumber !== data[last].discNumber) ) { acc.push(id) }