fix: Some spots where navigation state was not preserved

fix: Collection in main nav pops open when moving from starred collection
This commit is contained in:
Tom Moor
2022-04-04 19:04:28 -07:00
parent 26b5fa82e3
commit 20a69b711a
5 changed files with 11 additions and 21 deletions

View File

@@ -200,7 +200,7 @@ class DocumentScene extends React.Component<Props> {
if (response) {
this.replaceDocument(response.data);
toasts.showToast(t("Document restored"));
history.replace(this.props.document.url);
history.replace(this.props.document.url, history.location.state);
}
};