mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
Fixes #652 - Autosave should not trigger before anything is written
This commit is contained in:
1 parent
5bebb7351d
commit
7e55ca8f39
1 file changed
+3
@@ -187,6 +187,9 @@ class DocumentScene extends React.Component<Props> {
|
||||
if (!document) return;
|
||||
if (document.text.trim() === text.trim()) return;
|
||||
document.updateData({ text }, true);
|
||||
|
||||
// prevent autosave before anything has been written
|
||||
if (!document.title && !document.id) return;
|
||||
this.autosave();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user