mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 17:14:22 +03:00
commit
5edb7b9727
@ -279,8 +279,8 @@ class EditorContainer extends Component {
|
||||
|
||||
_submitPost = async (fields) => {
|
||||
const {
|
||||
navigation, currentAccount, pinCode, intl, isDefaultFooter
|
||||
} = this.props;
|
||||
navigation, currentAccount, pinCode, intl, isDefaultFooter,
|
||||
} = this.props;
|
||||
|
||||
if (currentAccount) {
|
||||
this.setState({ isPostSending: true });
|
||||
|
@ -38,15 +38,16 @@ class EditorScreen extends Component {
|
||||
}
|
||||
|
||||
// Component Life Cycles
|
||||
componentWillReceiveProps = (nextProps) => {
|
||||
componentWillReceiveProps = async (nextProps) => {
|
||||
const { draftPost, isUploading } = this.props;
|
||||
|
||||
if (nextProps.draftPost && draftPost !== nextProps.draftPost) {
|
||||
this.setState({
|
||||
await this.setState(prevState => ({
|
||||
fields: {
|
||||
...prevState.fields,
|
||||
...nextProps.draftPost,
|
||||
},
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
if (isUploading !== nextProps) {
|
||||
|
Loading…
Reference in New Issue
Block a user