mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +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() {
|
||||
|
|
|
@ -181,8 +181,6 @@ export class Editor {
|
|||
this.setTitle(title || '');
|
||||
this.setAddress(address || '');
|
||||
|
||||
console.log('setting address', address);
|
||||
|
||||
if (route) {
|
||||
this.poly.setPoints(route);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ export class Stickers {
|
|||
// };
|
||||
|
||||
createSticker = ({ latlng, sticker, angle = 2.2 }) => {
|
||||
console.log('creating', latlng, sticker, angle);
|
||||
const marker = new Sticker({
|
||||
latlng,
|
||||
angle,
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
*/
|
||||
|
||||
export const parseStickerAngle = ({ sticker, version }) => {
|
||||
console.log('stick', sticker, version);
|
||||
return sticker && version && parseInt(version, 10) === 2
|
||||
? parseFloat(sticker.angle)
|
||||
: parseFloat(sticker.ang - 3.14);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue