mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
Fixing issue with empty crossposts.
This commit is contained in:
parent
99e4551cf6
commit
b5c1fec845
1 changed files with 3 additions and 1 deletions
4
ui/src/components/post.tsx
vendored
4
ui/src/components/post.tsx
vendored
|
@ -457,7 +457,9 @@ export class Post extends Component<any, PostState> {
|
|||
this.state.crossPosts = data.posts.filter(
|
||||
p => p.id != Number(this.props.match.params.id)
|
||||
);
|
||||
this.state.post.duplicates = this.state.crossPosts;
|
||||
if (this.state.crossPosts.length) {
|
||||
this.state.post.duplicates = this.state.crossPosts;
|
||||
}
|
||||
this.setState(this.state);
|
||||
} else if (res.op == UserOperation.TransferSite) {
|
||||
let data = res.data as GetSiteResponse;
|
||||
|
|
Loading…
Reference in a new issue