mirror of
https://github.com/kou029w/quot.git
synced 2025-01-31 06:18:01 +00:00
no implicit update
This commit is contained in:
parent
b725b250d3
commit
624566a6d0
1 changed files with 3 additions and 1 deletions
|
@ -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 });
|
||||
}
|
||||
})
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue