kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix error uploading site logo
rodzic
9380c2244e
commit
fd908bdfe7
|
@ -128,7 +128,8 @@ const SoapboxConfig: React.FC = () => {
|
|||
if (file) {
|
||||
data.append('file', file);
|
||||
|
||||
dispatch(uploadMedia(data)).then(({ data }: any) => {
|
||||
dispatch(uploadMedia(data)).then(async (response) => {
|
||||
const data = await response.json();
|
||||
handleChange(path, () => data.url)(e);
|
||||
}).catch(console.error);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue