Fixed: Improve Selection of Executing Commands in Artist list

This commit is contained in:
Qstick
2019-04-05 23:03:42 -04:00
parent 789ce8a58f
commit 63f9338d2f
3 changed files with 22 additions and 13 deletions
@@ -0,0 +1,13 @@
import { createSelector } from 'reselect';
import { isCommandExecuting } from 'Utilities/Command';
function createExecutingCommandsSelector() {
return createSelector(
(state) => state.commands.items,
(commands) => {
return commands.filter((command) => isCommandExecuting(command));
}
);
}
export default createExecutingCommandsSelector;