Skip to content

Commit

Permalink
feat: import
Browse files Browse the repository at this point in the history
  • Loading branch information
ikun97 committed Jan 15, 2025
1 parent de708a9 commit 43fe5e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const ImportModal: React.FC<{
useEffect(() => {
if (fileUrl) {
setLoading(true);
APIFetch.get<ExportBotResponse>(getFileUrl(fileUrl))
fetch(getFileUrl(fileUrl))
.then(res => res.json())
.then(({ data, success }) => {
if (!success) {
throw new Error('');
Expand Down

0 comments on commit 43fe5e1

Please sign in to comment.