mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Fix regression in “Edit media” modal in web UI (#13243)
This commit is contained in:
parent
2c6099125d
commit
90f3a00062
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user