Skip to content

Commit

Permalink
don't render AI metadata if visualize is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolodavis committed Jul 22, 2018
1 parent d99caed commit 570f40e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/client/debug/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,12 @@ export class Debug extends React.Component {

return (
<div className={className}>
{this.state.AIMetadata && (
<div className="pane" style={{ maxWidth: '3000px' }}>
{this.props.visualizeAI(this.state.AIMetadata)}
</div>
)}
{this.state.AIMetadata &&
this.props.visualizeAI && (
<div className="pane" style={{ maxWidth: '3000px' }}>
{this.props.visualizeAI(this.state.AIMetadata)}
</div>
)}

<div className="pane">
<div className="menu">
Expand Down

0 comments on commit 570f40e

Please sign in to comment.