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!

js file to ts

kruzhambusf7d7e3ff13e1
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index 33225918a..4fe8512f4 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -20,7 +20,6 @@ import _keys from 'lodash/keys'
import _size from 'lodash/size'
import _round from 'lodash/round'
import _fill from 'lodash/fill'
-import _includes from 'lodash/includes'
import _reduce from 'lodash/reduce'
import _last from 'lodash/last'
import JSZip from 'jszip'
@@ -492,7 +491,7 @@ const getSettings = (
},
},
tooltip: {
- contents: (item: any, defaultTitleFormat: any, defaultValueFormat: any, color: any) => {
+ contents: (item: any, _: any, __: any, color: any) => {
const typesOptionsToTypesCompare: {
[key: string]: string,
} = {
@@ -538,11 +537,7 @@ const getSettings = (
} = el
if (id === 'uniqueCompare' || id === 'totalCompare' || id === 'bounceCompare' || id === 'sessionDurationCompare') {
- return null
- }
-
- if (_isEmpty(compareChart)) {
- return null
+ return '<span></span>'
}
if (id === 'sessionDuration') {
diff --git a/src/pages/Project/View/index.jsx b/src/pages/Project/View/index.tsx
similarity index 100%
rename from src/pages/Project/View/index.jsx
rename to src/pages/Project/View/index.tsx