fixes #2525 del hotkey doesn't work after canceling

The `useHotkeys` hook for this hotkey didn't have `isConnected` or `isProcessing` in its dependencies array. This prevented `handleDelete()` from dispatching the delete request.
This commit is contained in:
psychedelicious 2023-02-08 20:43:42 +11:00 committed by blessedcoolant
parent 77c11a42ee
commit 0cee72dba5

View File

@ -89,7 +89,7 @@ const DeleteImageModal = forwardRef(
() => { () => {
shouldConfirmOnDelete ? onOpen() : handleDelete(); shouldConfirmOnDelete ? onOpen() : handleDelete();
}, },
[image, shouldConfirmOnDelete] [image, shouldConfirmOnDelete, isConnected, isProcessing]
); );
const handleChangeShouldConfirmOnDelete = ( const handleChangeShouldConfirmOnDelete = (