Fix regression in “Edit media” modal in web UI (#13243)

lolsob-rspec
ThibG 2020-03-10 11:59:44 +01:00 committed by GitHub
parent 0701e09c85
commit c5731b4dc7
1 changed files with 1 additions and 1 deletions

View 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);
}