Minor changes to example config for feature flags

This commit is contained in:
efarooqui
2021-08-08 17:06:48 -07:00
parent ba4f5efdd2
commit 096cfaa073
3 changed files with 10 additions and 8 deletions

View File

@@ -160,7 +160,7 @@ const TimelineEvents = ({
const { shape: eventShape } = event;
let renderShape = isDot ? renderDot : renderBar;
if (eventShape.shape) {
if (eventShape && eventShape.shape) {
if (eventShape.shape === AVAILABLE_SHAPES.BAR) {
renderShape = renderBar;
} else if (eventShape.shape === AVAILABLE_SHAPES.DIAMOND) {