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!

show compare on tab perfomance

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