From: Dessalines Date: Tue, 14 Jan 2020 04:04:47 +0000 (-0500) Subject: Adding options below comment searches. Fixes #412 X-Git-Url: http://these/git/%22https:/image.com/readmes/%22%7Burl%7D/%24%7B%60data:application/%7Bthis.state.post.url%7D?a=commitdiff_plain;h=eccd8260888dbd5cdc910d115586a6659ed97455;p=lemmy.git Adding options below comment searches. Fixes #412 --- diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index 00c670d8..70219d4e 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -82,14 +82,7 @@ export class Search extends Component { this.handleSortChange = this.handleSortChange.bind(this); this.subscription = WebSocketService.Instance.subject - .pipe( - retryWhen(errors => - errors.pipe( - delay(3000), - take(10) - ) - ) - ) + .pipe(retryWhen(errors => errors.pipe(delay(3000), take(10)))) .subscribe( msg => this.parseMessage(msg), err => console.error(err), @@ -266,7 +259,7 @@ export class Search extends Component { {i.type_ == 'comments' && ( )} @@ -317,7 +310,7 @@ export class Search extends Component { return (
{this.state.searchResponse.comments.map(comment => ( - + ))}
);