diff options
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r-- | ui/src/components/post.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index a86ce2f4..d4869386 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -34,7 +34,7 @@ import { PostListings } from './post-listings'; import { Sidebar } from './sidebar'; import { CommentForm } from './comment-form'; import { CommentNodes } from './comment-nodes'; -import * as autosize from 'autosize'; +import autosize from 'autosize'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; @@ -76,14 +76,7 @@ export class Post extends Component<any, PostState> { } 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), @@ -169,7 +162,6 @@ export class Post extends Component<any, PostState> { post={this.state.post} showBody showCommunity - editable moderators={this.state.moderators} admins={this.state.admins} /> |