New: Show author names after task name when applicable

(cherry picked from commit 6d552f2a60f44052079b5e8944f5e1bbabac56e0)

Closes #3361
This commit is contained in:
Mark McDowall
2024-03-12 22:34:47 -07:00
committed by Bogdan
parent 77f1e8f8c9
commit 93ee466780
19 changed files with 494 additions and 459 deletions
@@ -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;