From 7f7526783f01116be1c3bcdd765656d20828c1ac Mon Sep 17 00:00:00 2001 From: Ardeman Date: Mon, 10 Mar 2025 17:28:46 +0800 Subject: [PATCH] fix: update dependency in EditorMenuBar to include imageUrl in useEffect --- app/components/text-editor/editor-menubar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/text-editor/editor-menubar.tsx b/app/components/text-editor/editor-menubar.tsx index e1ce6ae..09395f2 100644 --- a/app/components/text-editor/editor-menubar.tsx +++ b/app/components/text-editor/editor-menubar.tsx @@ -62,7 +62,7 @@ export const EditorMenuBar = (properties: TProperties) => { addImage(imageUrl) } // eslint-disable-next-line react-hooks/exhaustive-deps - }, []) + }, [imageUrl]) useEffect(() => { if (uploadedFile && isUploadOpen === category) {