From 5328000588095d96b8da7259e14c123133146107 Mon Sep 17 00:00:00 2001 From: Rafael Velazco Date: Tue, 27 Aug 2024 15:11:32 -0400 Subject: [PATCH] chore: code cleanup --- .../src/lib/components/DotEditableText/DotEditableText.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core-web/libs/sdk/react/src/lib/components/DotEditableText/DotEditableText.tsx b/core-web/libs/sdk/react/src/lib/components/DotEditableText/DotEditableText.tsx index 034b81756d13..5799e525fe15 100644 --- a/core-web/libs/sdk/react/src/lib/components/DotEditableText/DotEditableText.tsx +++ b/core-web/libs/sdk/react/src/lib/components/DotEditableText/DotEditableText.tsx @@ -43,8 +43,7 @@ export function DotEditableText({ const content = contentlet?.[fieldName] || ''; editorRef.current?.setContent(content, { format }); setContent(content); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [format, contentlet?.[fieldName]]); + }, [format, fieldName, contentlet?.[fieldName]]); useEffect(() => { if (!isInsideEditorFn()) {