1
0
Fork 0
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:
Nebel 2022-09-07 19:54:48 +09:00
parent b725b250d3
commit 624566a6d0

View file

@ -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 });
}
})
)
);