removed console logs

This commit is contained in:
suryac 2026-08-04 11:01:05 +05:30
parent dcbc288faf
commit 3de2c1050b
2 changed files with 7 additions and 7 deletions

View File

@ -176,7 +176,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
try { try {
const formDataToSend = cleanFormData(formDataOverride || valuesRef.current); const formDataToSend = cleanFormData(formDataOverride || valuesRef.current);
console.log('[LogVisitForm] Executing select_store lookup with prefilled formData:', formDataToSend);
const lookupRes = await client.wfLookupRecords({ const lookupRes = await client.wfLookupRecords({
activityId, activityId,
@ -239,7 +239,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
time_of_visit: timeVal, time_of_visit: timeVal,
}); });
console.log('[LogVisitForm] Fetching initial daily_log lookup with payload:', payload);
const dailyLogLookupRes = await client.wfLookupRecords({ const dailyLogLookupRes = await client.wfLookupRecords({
activityId, activityId,
@ -254,7 +254,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
if (arr.length > 0) { if (arr.length > 0) {
const firstLog = arr[0]; const firstLog = arr[0];
console.log('[LogVisitForm] Successfully fetched daily log record:', firstLog);
const dailyLogInstanceId = String(firstLog.instance_id || firstLog.id || ''); const dailyLogInstanceId = String(firstLog.instance_id || firstLog.id || '');
const routeCode = String( const routeCode = String(
@ -291,7 +291,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
valuesRef.current = updated; valuesRef.current = updated;
setValues(updated); setValues(updated);
console.log('[LogVisitForm] Daily log prefill complete:', updated);
} else { } else {
console.warn('[LogVisitForm] No daily log records found for date/time:', dateVal, timeVal); console.warn('[LogVisitForm] No daily log records found for date/time:', dateVal, timeVal);
} }
@ -370,14 +370,14 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
} }
payload['upload_image'] = uploadedFiles; payload['upload_image'] = uploadedFiles;
console.log('[LogVisitForm] Submitting clean startInstance payload:', payload);
const res: any = await client.startInstance(activityId, payload); const res: any = await client.startInstance(activityId, payload);
const chainSource = res?.activity_chain || schema?.activity_chain || []; const chainSource = res?.activity_chain || schema?.activity_chain || [];
if (chainSource && chainSource.length > 0) { if (chainSource && chainSource.length > 0) {
const nextAct = chainSource[0]; const nextAct = chainSource[0];
console.log('[LogVisitForm] Activity chain detected, transitioning to DynamicForm:', nextAct);
onActivityChange?.(nextAct.activity_name); onActivityChange?.(nextAct.activity_name);
setChainedActivity({ setChainedActivity({

View File

@ -135,7 +135,7 @@ export function RecordView({
sortDir, sortDir,
presetAlias presetAlias
}); });
console.log("RECORD VIEW RESP:", r);
if (live) setResp(r); if (live) setResp(r);
} catch (e) { } catch (e) {
if (live) setError((e as { message?: string })?.message ?? 'Failed to load'); if (live) setError((e as { message?: string })?.message ?? 'Failed to load');