fix: ESC on shared docs goes to login page, closes #3044

This commit is contained in:
Tom Moor
2022-02-01 21:33:04 -08:00
parent 735aaa668a
commit c10236f7a9

View File

@@ -375,7 +375,9 @@ class DocumentScene extends React.Component<Props> {
});
goBack = () => {
this.props.history.push(this.props.document.url);
if (!this.props.readOnly) {
this.props.history.push(this.props.document.url);
}
};
render() {