mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Show author names after task name when applicable
(cherry picked from commit 6d552f2a60f44052079b5e8944f5e1bbabac56e0) Closes #3361
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import AppState from 'App/State/AppState';
|
||||
|
||||
function createMultiAuthorsSelector(authorIds: number[]) {
|
||||
return createSelector(
|
||||
(state: AppState) => state.authors.itemMap,
|
||||
(state: AppState) => state.authors.items,
|
||||
(itemMap, allAuthors) => {
|
||||
return authorIds.map((authorId) => allAuthors[itemMap[authorId]]);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export default createMultiAuthorsSelector;
|
||||
Reference in New Issue
Block a user