X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fpost%2Fcreate-post.tsx;h=046bc2de5e2c4dd0eeaccf15ae2388ffbde6c55c;hb=4d716e039b8b96e6f4296f7e1ba7ae25d578741e;hp=05279c35d0d7a47249e3534d943d52e1ecb7b472;hpb=71336002e7276698088d3fa1c6b3e9808983cbc8;p=lemmy-ui.git diff --git a/src/shared/components/post/create-post.tsx b/src/shared/components/post/create-post.tsx index 05279c3..046bc2d 100644 --- a/src/shared/components/post/create-post.tsx +++ b/src/shared/components/post/create-post.tsx @@ -232,6 +232,10 @@ export class CreatePost extends Component< if (res.state === "success") { const postId = res.data.post_view.post.id; this.props.history.replace(`/post/${postId}`); + } else { + this.setState({ + loading: false, + }); } }