summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-04-05 10:11:16 -0400
committerDessalines <tyhou13@gmx.com>2020-04-05 10:11:16 -0400
commit221e35ec38fb9323bf0b0ca1d19dac7884fb79fa (patch)
tree120209cf6ef6f6fdd7718baf4111e7be87c05167 /ui/src/components/post.tsx
parentcb49a7e79044a76cabf8660e330294b2f370491c (diff)
Try to fix post creation bug.
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx2
1 files changed, 1 insertions, 1 deletions
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<any, PostState> {
} 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) {