removed console
This commit is contained in:
parent
21db7eaafb
commit
0e0d07411d
@ -76,7 +76,6 @@ export const DetailedOverview = ({ submission, onBack }) => {
|
||||
setIsLoading(true);
|
||||
setError(null);
|
||||
const response = await fetchSubmissionDetail(submission.id);
|
||||
console.log('Submission Detail API Response:', response); // Add this line
|
||||
if (response && response.data) {
|
||||
setSubmissionData(response.data);
|
||||
setQuarterPeriods(response.quarter_periods);
|
||||
@ -85,7 +84,6 @@ export const DetailedOverview = ({ submission, onBack }) => {
|
||||
// Store quarter_window.end_date in localStorage
|
||||
if (response.quarter_window?.end_date) {
|
||||
localStorage.setItem('quarterWindowEndDate', response.quarter_window.end_date);
|
||||
console.log('Stored quarter_window.end_date in localStorage');
|
||||
}
|
||||
if (response.data.products) {
|
||||
}
|
||||
@ -116,7 +114,6 @@ export const DetailedOverview = ({ submission, onBack }) => {
|
||||
|
||||
// Log is_active status for each product
|
||||
submissionData.products.forEach((product, index) => {
|
||||
console.log(`Product ${index + 1} is_active status:`, product?.is_active);
|
||||
});
|
||||
|
||||
const normalizedTerm = searchTerm.trim().toLowerCase();
|
||||
|
||||
@ -4,7 +4,6 @@ import { useNavigate } from 'react-router-dom';
|
||||
|
||||
// Default onBack function if not provided
|
||||
const defaultOnBack = () => {
|
||||
console.log('No onBack handler provided');
|
||||
};
|
||||
|
||||
const ProductDetails = ({
|
||||
|
||||
@ -287,7 +287,6 @@ const EstablishmentInfo = ({
|
||||
try {
|
||||
// Get existing resubmission data if it exists
|
||||
const existingData = JSON.parse(localStorage.getItem('resubmissionData') || '{}');
|
||||
console.log("existingData",existingData)
|
||||
// Update with establishment data
|
||||
const updatedData = {
|
||||
...existingData,
|
||||
@ -306,7 +305,6 @@ const EstablishmentInfo = ({
|
||||
quarter: data.quarter || surveyData.quarter,
|
||||
year: data.year || surveyData.year
|
||||
};
|
||||
console.log("updatedData",updatedData)
|
||||
|
||||
|
||||
// Save back to localStorage
|
||||
|
||||
@ -408,7 +408,6 @@ const validateCSVFile = (file, existingEstablishments = []) => {
|
||||
duplicateErrors.forEach((error, index) => {
|
||||
console.group(`Error ${index + 1} (Row ${error.row})`);
|
||||
if (error.duplicateRows) {
|
||||
console.log('Duplicate Rows:', error.duplicateRows.join(', '));
|
||||
}
|
||||
console.groupEnd();
|
||||
});
|
||||
|
||||
@ -111,7 +111,6 @@ export const uploadCompanyProfileCSVAlternative = async (formData, config = {})
|
||||
altFormData.append('csv_file', file); // Try 'csv_file' parameter
|
||||
|
||||
for (let pair of altFormData.entries()) {
|
||||
console.log(pair[0] + ': ', pair[1]);
|
||||
}
|
||||
|
||||
const response = await postRequest(uploadEndpoint, altFormData, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user