Fix mutating objects

lolsob-rspec
Eugen Rochko 2016-12-04 18:32:31 +01:00
parent bae8aa876a
commit 9c379084a7
1 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ export function submitCompose() {
sensitive: getState().getIn(['compose', 'sensitive']),
unlisted: getState().getIn(['compose', 'unlisted'])
}).then(function (response) {
dispatch(submitComposeSuccess(response.data));
dispatch(updateTimeline('home', response.data));
dispatch(updateTimeline('public', response.data));
dispatch(submitComposeSuccess({ ...response.data }));
dispatch(updateTimeline('home', { ...response.data }));
dispatch(updateTimeline('public', { ...response.data }));
}).catch(function (error) {
dispatch(submitComposeFail(error));
});