Remove redundant /api
This commit is contained in:
parent
99a0921685
commit
2806af6403
@ -117,7 +117,7 @@ export async function downloadReport(report_id: string) {
|
||||
|
||||
export async function downloadDashboardReport(duration='30d', subsidiary='ALL') {
|
||||
try {
|
||||
const response = await API.get(`/api/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, {
|
||||
const response = await API.get(`/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, {
|
||||
responseType: 'blob', // Important
|
||||
});
|
||||
let filename = "report.xlsx";
|
||||
|
Loading…
Reference in New Issue
Block a user