From 4733ce9287c1e3febc6543b4d6fa70f4911388e5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 28 Apr 2024 11:23:28 -0400 Subject: [PATCH] Fix ssb draft discard. --- apps/ssb.json | 2 +- apps/ssb/tf-compose.js | 5 ----- apps/ssb/tf-tab-news.js | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 192ea99d..4865e94a 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&n79T1PqC7BjDlQsKdVx2ghkjJVfYfq8uWrK0aoeL+qM=.sha256" + "previous": "&xyYP2KwKbv0fouic/uYj0WTA8jN0fAkQhPBJlLhnvK8=.sha256" } diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js index 3fe5664a..3cdbbdfe 100644 --- a/apps/ssb/tf-compose.js +++ b/apps/ssb/tf-compose.js @@ -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); } diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index a6a604b6..0a6608bd 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -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)); }