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 compare for perfomance

kruzhambus63b0d6487264
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsx
index 8dde4fc99..8b7b8ca4b 100644
--- a/src/pages/Project/View/ViewProject.tsx
+++ b/src/pages/Project/View/ViewProject.tsx
@@ -1606,7 +1606,9 @@ const ViewProject = ({
</span>
</div>
<Dropdown
- items={isActiveCompare ? _filter(periodPairs, (el) => {
+ items={activeTab !== PROJECT_TABS.traffic ? _filter(periodPairs, (el) => {
+ return el.period !== PERIOD_PAIRS_COMPARE.COMPARE
+ }) : isActiveCompare ? _filter(periodPairs, (el) => {
return _includes(filtersPeriodPairs, el.period)
}) : _includes(filtersPeriodPairs, period) ? periodPairs : _filter(periodPairs, (el) => {
return el.period !== PERIOD_PAIRS_COMPARE.COMPARE