bep40 commited on
Commit
1e6b05c
·
verified ·
1 Parent(s): c040d99

Fix: guard switchWCTab call with typeof check to prevent JS crash before wc2026_v2.js loads. WC highlights slide now renders correctly on homepage.

Browse files
Files changed (1) hide show
  1. static/app_v2.js +1 -1
static/app_v2.js CHANGED
@@ -57,7 +57,7 @@ async function loadHome(){
57
  _wc2026Data = wcData;
58
 
59
  // Render WC if data arrived
60
- if(wcData) switchWCTab('news');
61
 
62
  // Render sections into the after-wc area
63
  _renderShortsIn(afterEl);
 
57
  _wc2026Data = wcData;
58
 
59
  // Render WC if data arrived
60
+ if(wcData && typeof switchWCTab==='function') switchWCTab('news');
61
 
62
  // Render sections into the after-wc area
63
  _renderShortsIn(afterEl);