mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
fix(FE): delete console log debug
This commit is contained in:
@@ -24,8 +24,6 @@ const FinanceDetailPage = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(finance);
|
|
||||||
|
|
||||||
// if (!finance || isResponseError(finance)) {
|
// if (!finance || isResponseError(finance)) {
|
||||||
// router.replace('/404');
|
// router.replace('/404');
|
||||||
// return;
|
// return;
|
||||||
|
|||||||
@@ -118,8 +118,6 @@ const DashboardProduction = () => {
|
|||||||
} as DashboardFilterType,
|
} as DashboardFilterType,
|
||||||
validationSchema: getDashboardFilterSchema(analysisMode),
|
validationSchema: getDashboardFilterSchema(analysisMode),
|
||||||
onSubmit: (values) => {
|
onSubmit: (values) => {
|
||||||
console.log(values);
|
|
||||||
|
|
||||||
handleApplyFilter({
|
handleApplyFilter({
|
||||||
start_date: values.startDate || '',
|
start_date: values.startDate || '',
|
||||||
end_date: values.endDate || '',
|
end_date: values.endDate || '',
|
||||||
@@ -139,8 +137,6 @@ const DashboardProduction = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleApplyFilter = (values: DashboardFilter) => {
|
const handleApplyFilter = (values: DashboardFilter) => {
|
||||||
console.log(values);
|
|
||||||
|
|
||||||
// Build query params object, only include non-empty values
|
// Build query params object, only include non-empty values
|
||||||
const params: Record<string, string> = {};
|
const params: Record<string, string> = {};
|
||||||
|
|
||||||
@@ -156,7 +152,6 @@ const DashboardProduction = () => {
|
|||||||
if (values.comparison_type) params.comparison_type = values.comparison_type;
|
if (values.comparison_type) params.comparison_type = values.comparison_type;
|
||||||
|
|
||||||
setEndpointUrl(`/dashboards?${new URLSearchParams(params).toString()}`);
|
setEndpointUrl(`/dashboards?${new URLSearchParams(params).toString()}`);
|
||||||
console.log(endpointUrl);
|
|
||||||
filterModal.closeModal();
|
filterModal.closeModal();
|
||||||
refreshDashboardProductionData();
|
refreshDashboardProductionData();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -557,15 +557,12 @@ const ProjectFlockForm = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onDeleteBudgetRowHandler = (nonstock_id: number, index?: number) => {
|
const onDeleteBudgetRowHandler = (nonstock_id: number, index?: number) => {
|
||||||
console.log(`nonstock_id: ${nonstock_id}, index: ${index}`);
|
|
||||||
if (!nonstock_id) {
|
if (!nonstock_id) {
|
||||||
const updatedBudgets = formik.values.project_budgets
|
const updatedBudgets = formik.values.project_budgets
|
||||||
.map((budget, i) => {
|
.map((budget, i) => {
|
||||||
if (i == index) {
|
if (i == index) {
|
||||||
console.log(`buget: ${null}, index: ${index}, i: ${i}`);
|
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
console.log(`buget: ${budget}, index: ${index}, i: ${i}`);
|
|
||||||
return budget;
|
return budget;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const DailyMarketingsTable = ({
|
|||||||
];
|
];
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log({ sorting });
|
// console.log({ sorting });
|
||||||
|
|
||||||
if (sorting.length === 1) {
|
if (sorting.length === 1) {
|
||||||
onFilterByChange(sorting[0].id);
|
onFilterByChange(sorting[0].id);
|
||||||
|
|||||||
@@ -601,15 +601,15 @@ export function DailyChecklistContent() {
|
|||||||
) => {
|
) => {
|
||||||
const taskId = taskIdsByPhaseActivityId[activityId];
|
const taskId = taskIdsByPhaseActivityId[activityId];
|
||||||
|
|
||||||
console.log('[CHECKBOX] Click detected:', {
|
// console.log('[CHECKBOX] Click detected:', {
|
||||||
activityId,
|
// activityId,
|
||||||
employeeId,
|
// employeeId,
|
||||||
checked,
|
// checked,
|
||||||
taskId,
|
// taskId,
|
||||||
hasTaskId: !!taskId,
|
// hasTaskId: !!taskId,
|
||||||
checklistStatus,
|
// checklistStatus,
|
||||||
isEditable,
|
// isEditable,
|
||||||
});
|
// });
|
||||||
|
|
||||||
if (!taskId) {
|
if (!taskId) {
|
||||||
console.error('[CHECKBOX] No taskId found for activityId:', activityId);
|
console.error('[CHECKBOX] No taskId found for activityId:', activityId);
|
||||||
@@ -638,10 +638,10 @@ export function DailyChecklistContent() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
console.log(
|
// console.log(
|
||||||
'[CHECKBOX] State updated optimistically:',
|
// '[CHECKBOX] State updated optimistically:',
|
||||||
updated[taskId]?.[employeeId]
|
// updated[taskId]?.[employeeId]
|
||||||
);
|
// );
|
||||||
return updated;
|
return updated;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -653,7 +653,7 @@ export function DailyChecklistContent() {
|
|||||||
note: assignments[taskId]?.[employeeId]?.note || null,
|
note: assignments[taskId]?.[employeeId]?.note || null,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('[CHECKBOX] Saving to database:', payload);
|
// console.log('[CHECKBOX] Saving to database:', payload);
|
||||||
|
|
||||||
const checkOrUncheckAssignmentRes =
|
const checkOrUncheckAssignmentRes =
|
||||||
await DailyChecklistApi.checkOrUncheckAssignment(payload);
|
await DailyChecklistApi.checkOrUncheckAssignment(payload);
|
||||||
@@ -679,7 +679,7 @@ export function DailyChecklistContent() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('[CHECKBOX] Saved successfully');
|
// console.log('[CHECKBOX] Saved successfully');
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleNoteChange = async (
|
const handleNoteChange = async (
|
||||||
|
|||||||
Reference in New Issue
Block a user