mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix mutating objects
This commit is contained in:
parent
d4559402e4
commit
d5da55c6cc
@ -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));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user