mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
Merge branch 'use_http_client_dess' into use_http_client_2
This commit is contained in:
commit
e0bdffda9b
|
@ -136,7 +136,11 @@ export class MarkdownTextArea extends Component<
|
|||
return (
|
||||
<form id={this.formId} onSubmit={linkEvent(this, this.handleSubmit)}>
|
||||
<NavigationPrompt
|
||||
when={!!this.state.content && !this.state.submitted}
|
||||
when={
|
||||
!this.props.hideNavigationWarnings &&
|
||||
!!this.state.content &&
|
||||
!this.state.submitted
|
||||
}
|
||||
/>
|
||||
<div className="form-group row">
|
||||
<div className={`col-sm-12`}>
|
||||
|
|
|
@ -225,8 +225,6 @@ export class CreatePost extends Component<
|
|||
const postId = res.data.post_view.post.id;
|
||||
this.props.history.replace(`/post/${postId}`);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static fetchInitialData({
|
||||
|
|
Loading…
Reference in a new issue