possibly fixed editor initialData

This commit is contained in:
muerwre 2018-09-04 10:45:33 +07:00
parent fce88cac29
commit 25d9b1d2df
3 changed files with 32 additions and 17 deletions

View file

@ -60,6 +60,12 @@ export class SaveDialog extends React.Component {
setSuccess = ({ address, description }) => {
pushPath(`/${address}/edit`);
console.log('addr?', address);
this.props.editor.setAddress(address);
this.props.editor.owner = this.props.user.id;
this.props.editor.setInitialData();
this.setState({
error: description, finished: true, sending: true, overwriting: false
});