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 ts error

kruzhambus3ab64d2ea3a6
diff --git a/src/pages/Project/View/Panels.tsx b/src/pages/Project/View/Panels.tsx
index a79bab866..016d3cdca 100644
--- a/src/pages/Project/View/Panels.tsx
+++ b/src/pages/Project/View/Panels.tsx
@@ -773,6 +773,7 @@ const Panel = ({
openModal={() => setModal(true)}
customTabs={customTabs}
>
+ {/* @ts-ignore */}
<SankeyChart
disableLegend
pid={pid || ''}
@@ -797,6 +798,7 @@ const Panel = ({
)}
message={(
<div className='h-96 dark:text-gray-800'>
+ {/* @ts-ignore */}
<SankeyChart
pid={pid || ''}
period={period || ''}
diff --git a/src/pages/Project/View/components/SankeyChart.tsx b/src/pages/Project/View/components/SankeyChart.tsx
index da833f079..c0312f704 100644
--- a/src/pages/Project/View/components/SankeyChart.tsx
+++ b/src/pages/Project/View/components/SankeyChart.tsx
@@ -10,82 +10,6 @@ import { getUserFlowCacheKey } from 'redux/constants'
import { getUserFlow } from 'api'
import Loader from 'ui/Loader'
-const dataTest = {
- nodes: [
- {
- id: 'John',
- nodeColor: 'hsl(127, 70%, 50%)',
- },
- {
- id: 'Raoul',
- nodeColor: 'hsl(132, 70%, 50%)',
- },
- {
- id: 'Jane',
- nodeColor: 'hsl(76, 70%, 50%)',
- },
- {
- id: 'Marcel',
- nodeColor: 'hsl(20, 70%, 50%)',
- },
- {
- id: 'Ibrahim',
- nodeColor: 'hsl(225, 70%, 50%)',
- },
- {
- id: 'Junko',
- nodeColor: 'hsl(28, 70%, 50%)',
- },
- ],
- links: [
- {
- source: 'Junko',
- target: 'John',
- value: 88,
- },
- {
- source: 'Junko',
- target: 'Raoul',
- value: 22,
- },
- {
- source: 'Junko',
- target: 'Jane',
- value: 155,
- },
- {
- source: 'Raoul',
- target: 'John',
- value: 153,
- },
- {
- source: 'Marcel',
- target: 'Ibrahim',
- value: 198,
- },
- {
- source: 'Ibrahim',
- target: 'Junko',
- value: 138,
- },
- {
- source: 'Jane',
- target: 'John',
- value: 13,
- },
- {
- source: 'Jane',
- target: 'Raoul',
- value: 200,
- },
- ],
-}
-
-const defaultData = {
- nodes: [],
- links: [],
-}
-
const mapStateToProps = (state: StateType) => ({
userFlowAscendingCache: state.ui.cache.userFlowAscending,
userFlowDescendingCache: state.ui.cache.userFlowDescending,