diff --git a/web/apps/web/src/components/app/header/extra-action/import-modal.tsx b/web/apps/web/src/components/app/header/extra-action/import-modal.tsx index da6bfebc..cdc87824 100644 --- a/web/apps/web/src/components/app/header/extra-action/import-modal.tsx +++ b/web/apps/web/src/components/app/header/extra-action/import-modal.tsx @@ -32,7 +32,8 @@ const ImportModal: React.FC<{ useEffect(() => { if (fileUrl) { setLoading(true); - APIFetch.get(getFileUrl(fileUrl)) + fetch(getFileUrl(fileUrl)) + .then(res => res.json()) .then(({ data, success }) => { if (!success) { throw new Error('');