From 3dea5adf5c2729a7daa3fedd9ee5697f4cc00c85 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 16 Jan 2026 11:00:56 +0800 Subject: [PATCH] fix: change caused problem --- .../workflow/skill/editor/markdown-file-editor.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 (