Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Fix cleaning of deleted tweets
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Jan 12, 2020
1 parent 90e006e commit 7b45467
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/app.js
Expand Up @@ -31,10 +31,13 @@ new Vue({
.then(() => {
const tweets = []

for (const t in this.tweets) {
if (t.id !== tweet.id) {
tweets.push(t)
for (const i in this.tweets) {
const t = this.tweets[i]
if (t.id === tweet.id) {
continue
}

tweets.push(t)
}

this.tweets = tweets
Expand Down

0 comments on commit 7b45467

Please sign in to comment.