Skip to content

Commit

Permalink
Add additional safeguards for data source wizard step 2 (#60426)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
jen-huang and elasticmachine authored Mar 17, 2020
1 parent 32b3861 commit f168b6a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ export const StepConfigureDatasource: React.FunctionComponent<{
// Step B, configure inputs (and their streams)
// Assume packages only export one datasource for now
const ConfigureInputs =
packageInfo.datasources && packageInfo.datasources[0] ? (
packageInfo.datasources &&
packageInfo.datasources[0] &&
packageInfo.datasources[0].inputs &&
packageInfo.datasources[0].inputs.length ? (
<EuiFlexGroup direction="column">
{packageInfo.datasources[0].inputs.map(packageInput => {
const datasourceInput = datasource.inputs.find(input => input.type === packageInput.type);
Expand Down

0 comments on commit f168b6a

Please sign in to comment.