don't show non-categorised events on timeline

This commit is contained in:
Lachlan Kermode
2020-06-04 13:54:10 +02:00
parent 96e47a2159
commit 33bbb5d0aa
2 changed files with 15 additions and 10 deletions

View File

@@ -9,13 +9,16 @@ export default ({
onSelect,
styleProps,
extraRender
}) => (
<circle
onClick={onSelect}
className='event'
cx={x}
cy={y}
style={styleProps}
r={r}
/>
)
}) => {
if (!y) return null
return (
<circle
onClick={onSelect}
className='event'
cx={x}
cy={y}
style={styleProps}
r={r}
/>
)
}

View File

@@ -91,6 +91,8 @@ const TimelineEvents = ({
renderShape = renderDiamond
} else if (event.shape === 'star') {
renderShape = renderStar
} else {
renderShape = renderDot
}
}