mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-31 05:48:18 +00:00
* New: Release Profiles - UI Updates * New: Release Profiles - API Changes * New: Release Profiles - Test Updates * New: Release Profiles - Backend Updates * New: Interactive Artist Search * New: Change Montiored on Album Details Page * New: Show Duration on Album Details Page * Fixed: Manual Import not working if no albums are Missing * Fixed: Sort search input by sortTitle * Fixed: Queue columnLabel throwing JS error
24 lines
470 B
JavaScript
24 lines
470 B
JavaScript
import { createSelector } from 'reselect';
|
|
|
|
function createQueueItemSelector() {
|
|
return createSelector(
|
|
(state, { albumId }) => albumId,
|
|
(state) => state.queue.details.items,
|
|
(albumId, details) => {
|
|
if (!albumId) {
|
|
return null;
|
|
}
|
|
|
|
return details.find((item) => {
|
|
if (item.album) {
|
|
return item.album.id === albumId;
|
|
}
|
|
|
|
return false;
|
|
});
|
|
}
|
|
);
|
|
}
|
|
|
|
export default createQueueItemSelector;
|