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!

fix url query if date doesnt correct

kruzhambus20bddaf0428c
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index c00092ab1..018d3defc 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -776,7 +776,7 @@ const ViewProject = ({
if (intialPeriod === 'custom') {
const from = new Date(searchParams.get('from'))
const to = new Date(searchParams.get('to'))
- if (from.getDate && to.getDate) {
+ if (from.getDate() && to.getDate()) {
onRangeDateChange([from, to], true)
setRangeDate([from, to])
}