From 721374e08d2aad191a0055cdf783b3c2121d9773 Mon Sep 17 00:00:00 2001 From: Zachary Marion Date: Wed, 20 Dec 2017 13:45:15 -0500 Subject: [PATCH] meta+s now redirects to document edit page --- app/scenes/Document/Document.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 162fb0fd3..a1722ca1b 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -171,6 +171,9 @@ class DocumentScene extends Component { if (redirect) { this.props.history.push(document.url); this.props.ui.setActiveDocument(document); + } else if (this.props.newDocument) { + this.props.history.push(documentEditUrl(document)); + this.props.ui.setActiveDocument(document); } };