Skip to content

Commit 6f67fc3

Browse files
committedSep 4, 2021
feat(website): improve data log when clicking on funnel parts
1 parent f939554 commit 6f67fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎website/src/pages/funnel/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import omit from 'lodash/omit'
23
import merge from 'lodash/merge'
34
import { ResponsiveFunnel, svgDefaultProps } from '@nivo/funnel'
45
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
@@ -84,7 +85,7 @@ const Funnel = () => (
8485
type: 'click',
8586
label: `[part] id: ${part.data.id}, value: ${part.formattedValue}`,
8687
color: part.color,
87-
data: part.data,
88+
data: omit(part, ['points', 'areaPoints', 'borderPoints']),
8889
})
8990
}}
9091
/>

0 commit comments

Comments
 (0)
Please sign in to comment.