mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
possibly fixed editor initialData
This commit is contained in:
parent
fce88cac29
commit
25d9b1d2df
3 changed files with 32 additions and 17 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue