fixed bug double tweets on FE

This commit is contained in:
Manuel Hude
2021-05-04 20:38:40 +02:00
parent f42fbfcb59
commit cd759aa6f7
2 changed files with 3 additions and 3 deletions
@@ -61,10 +61,10 @@ export class TweetsComponent implements OnInit {
this._snackbarService.show('Keine weiteren Tweets vorhanden', 'Schließen');
}
for (const tweet of data) {
const position = tweet.text.search(': http');
tweet.text = tweet.text.substring(0, position);
this.tweets.push(tweet);
}
},
err => {