(show)
| 20978 | }, 4000); |
| 20979 | |
| 20980 | if (currentTab === 'dashboard') { |
| 20981 | setTimeout(() => { |
| 20982 | loadAIInsights().catch(err => console.error('Failed to refresh AI insights after toggle:', err)); |
| 20983 | }, 500); |
| 20984 | } |
| 20985 | } catch (error) { |
| 20986 | console.error('Failed to toggle AI insights:', error); |