diff --git a/src/core_plugins/kibana/public/home/components/tutorial/instruction.js b/src/core_plugins/kibana/public/home/components/tutorial/instruction.js index ec034ab3683f7..4f24b178ecff0 100644 --- a/src/core_plugins/kibana/public/home/components/tutorial/instruction.js +++ b/src/core_plugins/kibana/public/home/components/tutorial/instruction.js @@ -19,16 +19,13 @@ export function Instruction({ commands, paramValues, textPost, textPre }) { post = ; } - const aceOptions = { - fontSize: '14px', - maxLines: commands.length - }; - - return ( -
- - {pre} - + let commandsMarkup; + if (commands) { + const aceOptions = { + fontSize: '14px', + maxLines: commands.length + }; + commandsMarkup = (
+ ); + } + return ( +
+ + {pre} + {commandsMarkup} {post}
@@ -47,7 +51,7 @@ export function Instruction({ commands, paramValues, textPost, textPre }) { } Instruction.propTypes = { - commands: PropTypes.array.isRequired, + commands: PropTypes.array, paramValues: PropTypes.object.isRequired, textPost: PropTypes.string, textPre: PropTypes.string,