Commit d5da55c6 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix mutating objects

parent d4559402
......@@ -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));
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment