about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-10 11:59:44 +0100
committerGitHub <noreply@github.com>2020-03-10 11:59:44 +0100
commit90f3a0006243250ced6e7e192f81513d6b731b33 (patch)
treeb3d72c27a52fd14c0d04da87a7d0448795271045 /app/javascript
parent2c6099125d9ed5c2add62e84d5ba7b93de658910 (diff)
Fix regression in “Edit media” modal in web UI (#13243)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/compose.js2
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);
                 }