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!

disable forecasts for selfhosted

Blue Mousefd02ac666357
diff --git a/app/pages/Project/View/ViewProject.tsx b/app/pages/Project/View/ViewProject.tsx
index d6c65dddc..064a5a0fb 100644
--- a/app/pages/Project/View/ViewProject.tsx
+++ b/app/pages/Project/View/ViewProject.tsx
@@ -2407,7 +2407,7 @@ const ViewProject = ({
// onForecastOpen is a function for open forecast modal
const onForecastOpen = () => {
- if (isLoading || dataLoading) {
+ if (isLoading || dataLoading || isSelfhosted) {
return
}
@@ -2421,6 +2421,10 @@ const ViewProject = ({
// onForecastSubmit is a function for submit forecast modal
const onForecastSubmit = async (periodToForecast: string) => {
+ if (isSelfhosted) {
+ return
+ }
+
setIsForecastOpened(false)
setDataLoading(true)
const key = getProjectForcastCacheKey(period, timeBucket, periodToForecast, filters)