Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rjvelazco committed Aug 27, 2024
1 parent 6be364c commit 5328000
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5328000

Please sign in to comment.