Room remove image button fixed

This commit is contained in:
Claudio Maggioni (maggicl) 2020-05-04 17:58:08 +02:00
parent 0c98ed0e49
commit 6454a369df
2 changed files with 1450 additions and 953 deletions

View File

@ -26,7 +26,7 @@ class RoomModal extends Component {
this.addRoomModal = this.addRoomModal.bind(this);
this.updateIcon = this.updateIcon.bind(this);
this.removeImage = this.removeImage.bind(this);
this.unsetImage = this.unsetImage.bind(this);
}
get initialState() {
@ -38,13 +38,9 @@ class RoomModal extends Component {
};
}
removeImage(e) {
unsetImage = (e) => {
e.preventDefault();
this.setState(
update(this.state, {
image: { $set: null },
})
);
this.setState({ ...this.state, img: "" });
}
setInitialState() {

File diff suppressed because it is too large Load Diff