lfqian commited on
Commit
b8c94b3
·
1 Parent(s): a874a41

Add detailed debug logs to investigate end_date values from tableRows

Browse files
Files changed (1) hide show
  1. src/views/LiveView.vue +5 -1
src/views/LiveView.vue CHANGED
@@ -385,8 +385,12 @@ watch(
385
  // Get all end_date values and find the maximum
386
  const dates = assetRows.map(r => r.end_date).sort()
387
  maxEndDate = dates[dates.length - 1] // Latest date
 
 
 
 
 
388
  }
389
- console.log('[LiveView] Asset:', currentAsset, 'Total rows:', assetRows.length, 'Max end_date:', maxEndDate)
390
 
391
  // Buy & Hold first
392
  const first = perfs[0]
 
385
  // Get all end_date values and find the maximum
386
  const dates = assetRows.map(r => r.end_date).sort()
387
  maxEndDate = dates[dates.length - 1] // Latest date
388
+ console.log('[LiveView] Asset:', currentAsset, 'Total rows:', assetRows.length, 'All end_dates:', dates, 'Max:', maxEndDate)
389
+ // Log first few rows for debugging
390
+ console.log('[LiveView] Sample rows:', assetRows.slice(0, 3).map(r => ({ agent: r.agent_name, model: r.model, end_date: r.end_date })))
391
+ } else {
392
+ console.log('[LiveView] Asset:', currentAsset, 'NO ROWS FOUND with end_date!')
393
  }
 
394
 
395
  // Buy & Hold first
396
  const first = perfs[0]