fix: add error handling to changePeriod async function

Wrap await call in try/catch to satisfy JS-006 architecture rule.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-01 20:36:20 +01:00
parent 098f008dfd
commit ea0218746f

View File

@@ -140,7 +140,11 @@ function vendorAnalytics() {
*/
async changePeriod(newPeriod) {
this.period = newPeriod;
await this.loadAllData();
try {
await this.loadAllData();
} catch (error) {
vendorAnalyticsLog.error('Failed to change period:', error);
}
},
/**