]> cat aescling's git repositories - mastodon.git/commitdiff
Fix regression in “Edit media” modal in web UI (#13243)
authorThibG <thib@sitedethib.com>
Tue, 10 Mar 2020 10:59:44 +0000 (11:59 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 10:59:44 +0000 (11:59 +0100)
app/javascript/mastodon/actions/compose.js

index 68ef8fbd5402d13276f9fb638c2f26ce5a3833fa..6b73fc90e09a18354e015aabdff9de00756f4bae 100644 (file)
@@ -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);
                 }