forked from cory/tildefriends
		
	Fix ssb draft discard.
This commit is contained in:
		| @@ -233,11 +233,6 @@ class TfComposeElement extends LitElement { | ||||
| 	} | ||||
|  | ||||
| 	discard() { | ||||
| 		let edit = this.renderRoot.getElementById('edit'); | ||||
| 		edit.innerText = ''; | ||||
| 		this.input(); | ||||
| 		let preview = this.renderRoot.getElementById('preview'); | ||||
| 		preview.innerHTML = ''; | ||||
| 		this.notify(undefined); | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -84,7 +84,6 @@ class TfTabNewsElement extends LitElement { | ||||
| 		} else { | ||||
| 			delete this.drafts[id]; | ||||
| 		} | ||||
| 		/* Only trigger a re-render if we're creating a new draft or discarding an old one. */ | ||||
| 		this.drafts = Object.assign({}, this.drafts); | ||||
| 		tfrpc.rpc.localStorageSet('drafts', JSON.stringify(this.drafts)); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user