diff --git a/web/app/components/workflow/skill/editor/markdown-file-editor.tsx b/web/app/components/workflow/skill/editor/markdown-file-editor.tsx index 9ab6369c16..d0a8045f0b 100644 --- a/web/app/components/workflow/skill/editor/markdown-file-editor.tsx +++ b/web/app/components/workflow/skill/editor/markdown-file-editor.tsx @@ -10,12 +10,17 @@ type MarkdownFileEditorProps = { const MarkdownFileEditor: FC = ({ value, onChange }) => { const { t } = useTranslation() + const handleChange = React.useCallback((val: string) => { + if (val !== value) { + onChange(val) + } + }, [value, onChange]) return (