1
0
Fork 0
mirror of https://github.com/Luzifer/mediatimeline.git synced 2024-11-09 15:20:05 +00:00

Fix cleaning of deleted tweets

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-12 13:47:12 +01:00
parent 90e006ef41
commit 7b4546727b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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