mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed logout
This commit is contained in:
parent
ad04704c3e
commit
24186c0447
4 changed files with 3 additions and 10 deletions
|
@ -99,7 +99,6 @@ export class App extends React.Component {
|
|||
};
|
||||
|
||||
setEditing = editing => {
|
||||
console.log('editing', editing);
|
||||
this.setState({ editing });
|
||||
};
|
||||
|
||||
|
@ -165,14 +164,12 @@ export class App extends React.Component {
|
|||
if (this.state.user.id === this.editor.owner) {
|
||||
this.editor.owner = null;
|
||||
}
|
||||
|
||||
//
|
||||
this.setState({
|
||||
user: {
|
||||
...DEFAULT_USER,
|
||||
}
|
||||
user: DEFAULT_USER,
|
||||
});
|
||||
|
||||
this.storeUserData();
|
||||
setTimeout(this.storeUserData, 0);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue