Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

clean-up

Blue Mouse73f69a58a3b5
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index 98b600c1e..7eacb3c8a 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -632,13 +632,6 @@ const ViewProject = ({
return
}
- // return error if periodToForecast is less than 1 or greater than period
- if (periodToForecast < 1 || periodToForecast > activePeriod.daysCount) {
- setDataLoading(false)
- showError('Period to forecast should be greater than 0 and less than period')
- return
- }
-
try {
const result = await getChartPrediction(chartData, periodToForecast, timeBucket)
const transformed = transformAIChartData(result)