diff --git a/app/scenes/Document/components/DataLoader.js b/app/scenes/Document/components/DataLoader.js index 22b1a18c8..9b2f2abd0 100644 --- a/app/scenes/Document/components/DataLoader.js +++ b/app/scenes/Document/components/DataLoader.js @@ -102,6 +102,11 @@ class DataLoader extends React.Component { loadDocument = async () => { const { shareId, documentSlug, revisionId } = this.props.match.params; + // sets the document as active in the sidebar if we already have it loaded + if (this.document) { + this.props.ui.setActiveDocument(this.document); + } + try { this.document = await this.props.documents.fetch(documentSlug, { shareId,