bug fixed

This commit is contained in:
Malini 2025-12-11 13:34:40 +05:30
parent 93214d6428
commit 24e3c9117b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;