From: Dessalines Date: Sun, 5 Apr 2020 14:11:16 +0000 (-0400) Subject: Try to fix post creation bug. X-Git-Url: http://these/git/%22https:/join-lemmy.org/%7B%60%24%7BarchiveTodayUrl%7D/%24%7Bargs.thread.url%7D?a=commitdiff_plain;h=221e35ec38fb9323bf0b0ca1d19dac7884fb79fa;p=lemmy.git Try to fix post creation bug. --- diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index f51ba6ff..de0f0e32 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -460,7 +460,7 @@ export class Post extends Component { } else if (res.op == UserOperation.Search) { let data = res.data as SearchResponse; this.state.crossPosts = data.posts.filter( - p => p.id != this.state.post.id + p => p.id != Number(this.props.match.params.id) ); this.setState(this.state); } else if (res.op == UserOperation.TransferSite) {