From db41d779bf80e0bc95bbe0cfad5aeb225123f10a Mon Sep 17 00:00:00 2001 From: Zachary Marion Date: Wed, 20 Dec 2017 00:20:27 -0500 Subject: [PATCH] Don't redirect on new document save --- app/scenes/Document/Document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index dc6efe6db..162fb0fd3 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -168,7 +168,7 @@ class DocumentScene extends Component { document = await document.save(); this.isSaving = false; - if (redirect || this.props.newDocument) { + if (redirect) { this.props.history.push(document.url); this.props.ui.setActiveDocument(document); }