Fix some ssb compose issues.

This commit is contained in:
2024-04-24 20:19:14 -04:00
parent a9cb913a47
commit c5ddf3ac99
3 changed files with 9 additions and 12 deletions

View File

@ -85,9 +85,7 @@ class TfTabNewsElement extends LitElement {
delete this.drafts[id];
}
/* Only trigger a re-render if we're creating a new draft or discarding an old one. */
if ((previous !== undefined) != (event.detail.draft !== undefined)) {
this.drafts = Object.assign({}, this.drafts);
}
this.drafts = Object.assign({}, this.drafts);
tfrpc.rpc.localStorageSet('drafts', JSON.stringify(this.drafts));
}