1
0
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:
Bogdan
2026-01-04 23:02:25 +02:00
committed by Mark McDowall
parent 12ed8cdc26
commit 77612810d8

View File

@@ -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(