socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

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:
Msrc/app/tweet-list/tweet-list.component.ts | 2+-
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();