Fix ssb draft discard.

This commit is contained in:
Cory McWilliams 2024-04-28 11:23:28 -04:00
parent 48d6bf4c15
commit 4733ce9287
3 changed files with 1 additions and 7 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&n79T1PqC7BjDlQsKdVx2ghkjJVfYfq8uWrK0aoeL+qM=.sha256"
"previous": "&xyYP2KwKbv0fouic/uYj0WTA8jN0fAkQhPBJlLhnvK8=.sha256"
}

View File

@ -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);
}

View File

@ -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));
}