mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
Fix finding last command run
This commit is contained in:
@@ -128,9 +128,9 @@ export const useCommand = (
|
||||
const { data: commands } = useCommands();
|
||||
|
||||
return useMemo(() => {
|
||||
return commands.find((command) => {
|
||||
return commands.findLast((command) => {
|
||||
if (command.name !== commandName) {
|
||||
return undefined;
|
||||
return false;
|
||||
}
|
||||
|
||||
return (Object.keys(constraints) as Array<keyof CommandBody>).every(
|
||||
|
||||
Reference in New Issue
Block a user