removed unwanted code

This commit is contained in:
KarthiKKVardhan 2026-05-04 18:32:02 +05:30
parent 7e1bafe2fd
commit 74191af173
2 changed files with 4 additions and 5 deletions

View File

@ -2922,7 +2922,6 @@ const handleView = async (id) => {
};
try {
console.log('API Payload for creation:', apiPayload);
const apiResponse = await createEstablishment(apiPayload);
const successMessage = apiResponse?.message || 'Establishment added successfully.';
showToast('success', successMessage);

View File

@ -1066,10 +1066,10 @@ const handleExportCSV = () => {
// Show success message and reload the page after a short delay
setToast({ show: true, message: 'Product updated successfully!', type: 'success' });
// closeModal();
// setTimeout(() => {
// window.location.reload();
// }, 1000);
closeModal();
setTimeout(() => {
window.location.reload();
}, 1000);
return;
} catch (error) {
console.error('Error updating product:', error);