mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Merge branch 'dev'
This commit is contained in:
commit
7bc9bc962a
2
ui/src/components/post.tsx
vendored
2
ui/src/components/post.tsx
vendored
@ -457,7 +457,9 @@ export class Post extends Component<any, PostState> {
|
|||||||
this.state.crossPosts = data.posts.filter(
|
this.state.crossPosts = data.posts.filter(
|
||||||
p => p.id != Number(this.props.match.params.id)
|
p => p.id != Number(this.props.match.params.id)
|
||||||
);
|
);
|
||||||
|
if (this.state.crossPosts.length) {
|
||||||
this.state.post.duplicates = this.state.crossPosts;
|
this.state.post.duplicates = this.state.crossPosts;
|
||||||
|
}
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
} else if (res.op == UserOperation.TransferSite) {
|
} else if (res.op == UserOperation.TransferSite) {
|
||||||
let data = res.data as GetSiteResponse;
|
let data = res.data as GetSiteResponse;
|
||||||
|
Loading…
Reference in New Issue
Block a user