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 36a251952c..10f1be9153 100644 --- a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx @@ -127,7 +127,7 @@ const CurrentImageButtons = () => { recallSeed(metadata?.seed); }, [metadata?.seed, recallSeed]); - useHotkeys('s', handleUseSeed, [imageDTO]); + useHotkeys('s', handleUseSeed, [metadata]); const handleUsePrompt = useCallback(() => { recallBothPrompts( @@ -144,7 +144,7 @@ const CurrentImageButtons = () => { recallBothPrompts, ]); - useHotkeys('p', handleUsePrompt, [imageDTO]); + useHotkeys('p', handleUsePrompt, [metadata]); useHotkeys('w', handleLoadWorkflow, [workflow]);