mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: Updates to commandExecutingSelector
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import _ from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import createCommandsSelector from 'Store/Selectors/createCommandsSelector';
|
||||
import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector';
|
||||
import { fetchBackups, deleteBackup } from 'Store/Actions/systemActions';
|
||||
import { executeCommand } from 'Store/Actions/commandActions';
|
||||
import * as commandNames from 'Commands/commandNames';
|
||||
@@ -12,8 +11,8 @@ import Backups from './Backups';
|
||||
function createMapStateToProps() {
|
||||
return createSelector(
|
||||
(state) => state.system.backups,
|
||||
createCommandsSelector(),
|
||||
(backups, commands) => {
|
||||
createCommandExecutingSelector(commandNames.BACKUP),
|
||||
(backups, backupExecuting) => {
|
||||
const {
|
||||
isFetching,
|
||||
isPopulated,
|
||||
@@ -21,8 +20,6 @@ function createMapStateToProps() {
|
||||
items
|
||||
} = backups;
|
||||
|
||||
const backupExecuting = _.some(commands, { name: commandNames.BACKUP });
|
||||
|
||||
return {
|
||||
isFetching,
|
||||
isPopulated,
|
||||
|
||||
Reference in New Issue
Block a user