Skip to content

Commit

Permalink
Merge pull request #2011 from botpress/fl_no_nlu_section_when_nothing…
Browse files Browse the repository at this point in the history
…_to_show

fix(debugger): No nlu section when nothing to show
  • Loading branch information
EFF committed Jun 27, 2019
2 parents 292988d + 82c8b7a commit d1d6a7c
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -10,6 +10,10 @@ import { Intents } from './Intents'
import { Slots } from './Slots'

const NLU: SFC<{ nluData: sdk.IO.EventUnderstanding }> = ({ nluData }) => {
if (!nluData.intents.length && !nluData.entities.length && _.isEmpty(nluData.slots)) {
return null
}

return (
<div className={style.block}>
<H4>Understanding</H4>
Expand Down

0 comments on commit d1d6a7c

Please sign in to comment.