mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-10-02 13:15:28 +02:00
Fix Forecast Period discrepancy by excluding month filter from seasonality data
This commit is contained in:
1 parent
0ea94aefd1
commit
bc6ec6dff8
1 file changed
+2
-1
@@ -233,7 +233,8 @@ const App: React.FC = () => {
|
||||
// Filter rawData to respect customer selections but keep all years (2025 for seasonality, 2026 for actuals)
|
||||
const forecastRelevantData = filterData(rawData, {
|
||||
...filters,
|
||||
year: [] // Ensure we don't filter out 2025/2026 if a single year is selected in UI
|
||||
year: [], // Ensure we don't filter out 2025/2026 if a single year is selected in UI
|
||||
month: [] // EXCLUDE month filtering to preserve seasonality calculation in calculateForecastViewData
|
||||
});
|
||||
handleForecastFetch(forecastRelevantData, rawData, filters);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user