Skip to content

Commit

Permalink
fix: accept headers on import
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Oct 12, 2021
1 parent 5e85f48 commit 82c2d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset-frontend/src/views/CRUD/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export function useImportResource(
return SupersetClient.post({
endpoint: `/api/v1/${resourceName}/import/`,
body: formData,
headers: { Accept: 'application/json' },
})
.then(() => true)
.catch(response =>
Expand Down

0 comments on commit 82c2d5d

Please sign in to comment.