From 106e62296a94f43e60500eaf60f37d1052985f1b Mon Sep 17 00:00:00 2001 From: Patrick O'Sullivan Date: Mon, 6 Nov 2023 10:39:13 -0600 Subject: [PATCH] images: fix drag and drop in chat threads --- ui/src/logic/DragAndDropContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/logic/DragAndDropContext.tsx b/ui/src/logic/DragAndDropContext.tsx index 36e65b5981..3539de5474 100644 --- a/ui/src/logic/DragAndDropContext.tsx +++ b/ui/src/logic/DragAndDropContext.tsx @@ -162,9 +162,9 @@ export function useDragAndDrop(targetId: string) { const handleDropWithTarget = useCallback( (e: DragEvent) => { - handleDrop(e, targetId); + handleDrop(e, currentTargetId); }, - [handleDrop, targetId] + [handleDrop, currentTargetId] ); useEffect(() => {