mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Improved Indexer disabled popover
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import _ from 'lodash';
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
function createIndexerStatusSelector() {
|
||||
function createIndexerStatusSelector(indexerId) {
|
||||
return createSelector(
|
||||
(state, { indexerId }) => indexerId,
|
||||
(state) => state.indexerStatus.items,
|
||||
(indexerId, indexerStatus) => {
|
||||
(indexerStatus) => {
|
||||
return _.find(indexerStatus, { indexerId });
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user