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!

fixed issue with default undefined timeframe

Blue Moused5af689f3733
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index b2e5d57bb..d16a7c42f 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -229,8 +229,8 @@ const ViewProject = ({
const [isProjectPublic, setIsProjectPublic] = useState(false)
const [panelsData, setPanelsData] = useState({})
const [analyticsLoading, setAnalyticsLoading] = useState(true)
- const [period, setPeriod] = useState(projectViewPrefs[id]?.period || periodPairs[1].period)
- const [timeBucket, setTimebucket] = useState(projectViewPrefs[id]?.timeBucket || periodPairs[1].tbs[1])
+ const [period, setPeriod] = useState(projectViewPrefs[id]?.period || periodPairs[3].period)
+ const [timeBucket, setTimebucket] = useState(projectViewPrefs[id]?.timeBucket || periodPairs[3].tbs[1])
const activePeriod = useMemo(() => _find(periodPairs, p => p.period === period), [period, periodPairs])
const [showTotal, setShowTotal] = useState(false)
const [chartData, setChartData] = useState({})