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!

ai predict disable for compare

kruzhambus31d88f2f6b76
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index 09ede6713..33225918a 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -361,14 +361,16 @@ const getSettings = (
[key: string]: string,
} = {}
- _forEach(_keys(customEvents), (el) => {
- customEventsColors = {
- ...customEventsColors,
- [el]: stringToColour(el),
- }
- })
+ if (_isEmpty(compareChart)) {
+ _forEach(_keys(customEvents), (el) => {
+ customEventsColors = {
+ ...customEventsColors,
+ [el]: stringToColour(el),
+ }
+ })
+ }
- if (!_isEmpty(forecasedChartData)) {
+ if (!_isEmpty(forecasedChartData) && _isEmpty(compareChart)) {
lines.push({
value: _last(chart?.x),
text: 'Forecast',
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsx
index 0bbafbb1a..33d4da796 100644
--- a/src/pages/Project/View/ViewProject.tsx
+++ b/src/pages/Project/View/ViewProject.tsx
@@ -1562,7 +1562,7 @@ const ViewProject = ({
<ArrowPathIcon className='w-5 h-5 text-gray-700 dark:text-gray-50' />
</button>
</div>
- {!isSelfhosted && (
+ {(!isSelfhosted && !isActiveCompare) && (
<div
className={cx('md:border-r border-gray-200 dark:border-gray-600 md:pr-3 sm:mr-3', {
hidden: activeTab !== PROJECT_TABS.traffic || _isEmpty(chartData),