[PLT-6847] If a message starts with a / but is not a slash command, put the text back in the input box when it fails to send (#6695)
* If a message starts with a / but is not a slash command, put the text back in the input box when it fails to send * update string per review * update per review
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
50b662040c
Коммит
e1168ab7cc
@@ -170,10 +170,11 @@ export default class CreatePost extends React.Component {
|
||||
if (err.sendMessage) {
|
||||
this.sendMessage(post);
|
||||
} else {
|
||||
const state = {};
|
||||
state.serverError = err.message;
|
||||
state.submitting = false;
|
||||
this.setState({state});
|
||||
this.setState({
|
||||
serverError: err.message,
|
||||
submitting: false,
|
||||
message: post.message
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Ссылка в новой задаче
Block a user