Closes #673 - Redirect to new document after duplicating

This commit is contained in:
Tom Moor
2018-07-21 12:55:40 -07:00
parent 28690be77c
commit 3874fc9b3d
3 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,8 @@ class DocumentMenu extends React.Component<Props> {
};
handleDuplicate = async (ev: SyntheticEvent<*>) => {
this.props.document.duplicate();
const duped = await this.props.document.duplicate();
this.props.history.push(duped.url);
};
handlePin = (ev: SyntheticEvent<*>) => {