parent
b12c606982
commit
b0cfb4fe4a
1 changed files with 5 additions and 2 deletions
|
@ -27,6 +27,7 @@ import {
|
||||||
SearchResponse,
|
SearchResponse,
|
||||||
SearchType,
|
SearchType,
|
||||||
SortType,
|
SortType,
|
||||||
|
toOption,
|
||||||
UserOperation,
|
UserOperation,
|
||||||
wsJsonToRes,
|
wsJsonToRes,
|
||||||
wsUserOp,
|
wsUserOp,
|
||||||
|
@ -569,8 +570,10 @@ export class Post extends Component<any, PostState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
commentsTree() {
|
commentsTree() {
|
||||||
let showContextButton =
|
let showContextButton = toOption(this.state.commentTree[0]).match({
|
||||||
getDepthFromComment(this.state.commentTree[0].comment_view.comment) > 0;
|
some: comment => getDepthFromComment(comment.comment_view.comment) > 0,
|
||||||
|
none: false,
|
||||||
|
});
|
||||||
|
|
||||||
return this.state.postRes.match({
|
return this.state.postRes.match({
|
||||||
some: res => (
|
some: res => (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue