mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
fix(composers): hide performer-only artists with zero composer credits (#963)
* fix(composers): drop Navidrome role rows with zero composer albums Navidrome can list performer-only artists under role=composer with stats.composer.albumCount 0; filter them out of the Composers catalog so search no longer surfaces ghost entries like Apollo 440. * docs(changelog): credit zunoz on Psysonic Discord for PR #963
This commit is contained in:
@@ -19,6 +19,7 @@ import { useNavigateToComposer } from '../hooks/useNavigateToComposer';
|
||||
import { peekComposerBrowseScrollRestore } from '../store/composerBrowseSessionStore';
|
||||
import { useScopedBrowseSearchQuery } from '../store/liveSearchScopeStore';
|
||||
import { readComposerBrowseRestore } from '../utils/navigation/albumDetailNavigation';
|
||||
import { filterArtistsWithRoleAlbumCredits } from '../utils/library/composerBrowse';
|
||||
import { usePerfProbeFlags } from '../utils/perf/perfFlags';
|
||||
import { VirtualCardGrid } from '../components/VirtualCardGrid';
|
||||
import OverlayScrollArea from '../components/OverlayScrollArea';
|
||||
@@ -153,7 +154,7 @@ export default function Composers() {
|
||||
ndListArtistsByRole('composer', 0, 10000)
|
||||
.then(data => {
|
||||
if (cancelled) return;
|
||||
setComposers(data);
|
||||
setComposers(filterArtistsWithRoleAlbumCredits(data));
|
||||
setLoading(false);
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user