New: Show artist names after task name when applicable

(cherry picked from commit 6d552f2a60f44052079b5e8944f5e1bbabac56e0)

Closes #4678
This commit is contained in:
Mark McDowall 2024-03-12 22:34:47 -07:00 committed by Bogdan
commit 873a225f0c
17 changed files with 419 additions and 459 deletions

View file

@ -0,0 +1,14 @@
import { createSelector } from 'reselect';
import AppState from 'App/State/AppState';
function createMultiArtistsSelector(artistIds: number[]) {
return createSelector(
(state: AppState) => state.artist.itemMap,
(state: AppState) => state.artist.items,
(itemMap, allArtists) => {
return artistIds.map((artistId) => allArtists[itemMap[artistId]]);
}
);
}
export default createMultiArtistsSelector;