From fd908bdfe750ea2803a974a0980997699b2403f1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 1 Mar 2025 22:37:40 -0600 Subject: [PATCH] Fix error uploading site logo --- src/features/soapbox-config/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/soapbox-config/index.tsx b/src/features/soapbox-config/index.tsx index e822ca8d8..b6ec0b46f 100644 --- a/src/features/soapbox-config/index.tsx +++ b/src/features/soapbox-config/index.tsx @@ -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); }