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