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) {