mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-22 13:11:32 +02:00
Fix finding last command run
This commit is contained in:
parent
12ed8cdc26
commit
77612810d8
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue