Try to fix post creation bug.
This commit is contained in:
parent
37036e68b5
commit
aa2cabecde
1 changed files with 1 additions and 1 deletions
2
ui/src/components/post.tsx
vendored
2
ui/src/components/post.tsx
vendored
|
@ -460,7 +460,7 @@ export class Post extends Component<any, PostState> {
|
||||||
} else if (res.op == UserOperation.Search) {
|
} else if (res.op == UserOperation.Search) {
|
||||||
let data = res.data as SearchResponse;
|
let data = res.data as SearchResponse;
|
||||||
this.state.crossPosts = data.posts.filter(
|
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);
|
this.setState(this.state);
|
||||||
} else if (res.op == UserOperation.TransferSite) {
|
} else if (res.op == UserOperation.TransferSite) {
|
||||||
|
|
Loading…
Reference in a new issue