Skip to content

Commit

Permalink
missing path viz conditoin (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Jan 6, 2021
1 parent 11845b2 commit 8402bc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/scenes/dashboard/DashboardItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ export function DashboardItem({
const [showSaveModal, setShowSaveModal] = useState(false)

const _type =
item.filters.insight === ViewType.RETENTION ? 'RetentionContainer' : item.filters.display || 'ActionsLineGraph'
item.filters.insight === ViewType.RETENTION
? 'RetentionContainer'
: item.filters.insight === ViewType.PATHS
? 'PathsViz'
: item.filters.display || 'ActionsLineGraph'

const className = displayMap[_type].className
const Element = displayMap[_type].element
const Icon = displayMap[_type].icon
Expand Down

0 comments on commit 8402bc3

Please sign in to comment.