Merge branch 'use_http_client_dess' into use_http_client_2

This commit is contained in:
Dessalines 2023-06-14 08:08:08 -04:00
commit e0bdffda9b
2 changed files with 5 additions and 3 deletions

View file

@ -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`}>

View file

@ -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({