commit 842cb22db0a1eb817f229b91152d869c9bd90503
parent 87d558b70dd56d505de90b358fa936bfa6462355
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 18 Mar 2018 18:55:43 +0100
fix t.toArray() is not a function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts
@@ -34,7 +34,7 @@ export class TweetListComponent implements OnInit {
public goTo(el: any, which: string): void {
console.log(el)
console.log(typeof el)
- el.toArray().forEach((value: ElementRef, index: number, array: ElementRef[]) => {
+ el.forEach((value: ElementRef, index: number, array: ElementRef[]) => {
if (value.nativeElement.id === which) {
console.log(value);
value.nativeElement.scrollIntoView();