From 90083cc88ddda1a48f7c575e99d348690c00989f Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:28:01 +1100 Subject: [PATCH] fix(ui): fix use all hotkey --- .../components/CurrentImage/CurrentImageButtons.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx index 32f03eb6c0..57f06a0cea 100644 --- a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx @@ -134,13 +134,7 @@ const CurrentImageButtons = () => { recallAllParameters(metadata); }, [metadata, recallAllParameters]); - useHotkeys( - 'a', - () => { - handleClickUseAllParameters; - }, - [metadata, recallAllParameters] - ); + useHotkeys('a', handleClickUseAllParameters, [metadata]); const handleUseSeed = useCallback(() => { recallSeed(metadata?.seed);