mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
Fixed: Another spurious save prompt
This commit is contained in:
1 parent
5900fa1fbb
commit
b70cf29aae
1 file changed
+4
-3
@@ -183,9 +183,10 @@ class DocumentScene extends Component {
|
||||
};
|
||||
|
||||
onChange = text => {
|
||||
if (!this.document) return;
|
||||
if (this.document.text === text) return;
|
||||
this.document.updateData({ text }, true);
|
||||
let document = this.document;
|
||||
if (!document) return;
|
||||
if (document.text.trim() === text.trim()) return;
|
||||
document.updateData({ text }, true);
|
||||
};
|
||||
|
||||
onDiscard = () => {
|
||||
|
||||
Reference in new issue
Block a user