diff options
author | ThibG <thib@sitedethib.com> | 2020-03-10 11:59:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 11:59:44 +0100 |
commit | 90f3a0006243250ced6e7e192f81513d6b731b33 (patch) | |
tree | b3d72c27a52fd14c0d04da87a7d0448795271045 | |
parent | 2c6099125d9ed5c2add62e84d5ba7b93de658910 (diff) |
Fix regression in “Edit media” modal in web UI (#13243)
-rw-r--r-- | app/javascript/mastodon/actions/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js index 68ef8fbd5..6b73fc90e 100644 --- a/app/javascript/mastodon/actions/compose.js +++ b/app/javascript/mastodon/actions/compose.js @@ -245,7 +245,7 @@ export function uploadCompose(files) { const poll = () => { api(getState).get(`/api/v1/media/${data.id}`).then(response => { if (response.status === 200) { - dispatch(uploadComposeSuccess(data, f)); + dispatch(uploadComposeSuccess(response.data, f)); } else if (response.status === 206) { setTimeout(() => poll(), 1000); } |