bug fixed
This commit is contained in:
parent
93214d6428
commit
24e3c9117b
@ -232,7 +232,7 @@ const ImportModal = ({ isOpen, onClose, onImport }) => {
|
||||
const response = await productService.downloadSampleFile();
|
||||
|
||||
// Create a blob from the response
|
||||
const blob = new Blob([response], { type: 'text/csv' });
|
||||
const blob = new Blob([response.data], { type: 'text/csv' });
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
|
||||
@ -722,7 +722,7 @@ const downloadSampleCSV = async () => {
|
||||
const response = await downloadSampleFile();
|
||||
|
||||
// Create a blob from the response
|
||||
const blob = new Blob([response], { type: 'text/csv;charset=utf-8;' });
|
||||
const blob = new Blob([response.data], { type: 'text/csv' });
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user