1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00
This commit is contained in:
Eugen Rochko 2016-08-31 23:03:01 +02:00
parent dbae8062f4
commit d6873797ac

View File

@ -23,7 +23,7 @@ export default function compose(state = initialState, action) {
return state.set('is_submitting', true);
case constants.COMPOSE_SUBMIT_SUCCESS:
return state.withMutations(map => {
map.set('text', '').set('is_submitting', false),set('in_reply_to', null);
map.set('text', '').set('is_submitting', false).set('in_reply_to', null);
});
case constants.COMPOSE_SUBMIT_FAIL:
return state.set('is_submitting', false);