diff --git a/app/views/components/editor.tsx b/app/views/components/editor.tsx index 2e18d2d..2c93ee4 100644 --- a/app/views/components/editor.tsx +++ b/app/views/components/editor.tsx @@ -75,7 +75,9 @@ export default (props: { return `${" ".repeat(indent)}${line.getTextContent()}`; }); const text = [title, ...lines].join("\n"); - props.onUpdatePage({ id: props.id, title, text }); + if (props.text !== text) { + props.onUpdatePage({ id: props.id, title, text }); + } }) ) );