mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
Merge branch 'dev' into materialized_views
This commit is contained in:
commit
cc11930bdd
1 changed files with 3 additions and 10 deletions
13
ui/src/components/search.tsx
vendored
13
ui/src/components/search.tsx
vendored
|
@ -82,14 +82,7 @@ export class Search extends Component<any, SearchState> {
|
|||
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<any, SearchState> {
|
|||
{i.type_ == 'comments' && (
|
||||
<CommentNodes
|
||||
nodes={[{ comment: i.data as Comment }]}
|
||||
viewOnly
|
||||
locked
|
||||
noIndent
|
||||
/>
|
||||
)}
|
||||
|
@ -317,7 +310,7 @@ export class Search extends Component<any, SearchState> {
|
|||
return (
|
||||
<div>
|
||||
{this.state.searchResponse.comments.map(comment => (
|
||||
<CommentNodes nodes={[{ comment: comment }]} noIndent viewOnly />
|
||||
<CommentNodes nodes={[{ comment: comment }]} locked noIndent />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue