added a comment + more reliable edit cancel

This commit is contained in:
Jori Lallo
2017-09-10 13:05:54 -04:00
parent 39c6ba63f5
commit 23a2c7a052

View File

@@ -91,6 +91,7 @@ type Props = {
this.props.ui.setActiveDocument(document);
document.view();
} else {
// Render 404 with search
this.setState({ notFound: true });
}
}
@@ -147,7 +148,8 @@ type Props = {
};
onCancel = () => {
this.props.history.goBack();
if (!this.document) return;
this.props.history.push(this.document.url);
};
onStartDragging = () => {