mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
New: Show artist names after task name when applicable
(cherry picked from commit 6d552f2a60f44052079b5e8944f5e1bbabac56e0) Closes #4678
This commit is contained in:
parent
b81170d911
commit
873a225f0c
17 changed files with 419 additions and 459 deletions
14
frontend/src/Store/Selectors/createMultiArtistsSelector.ts
Normal file
14
frontend/src/Store/Selectors/createMultiArtistsSelector.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue