File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/cli/generators/datasource Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,12 @@ module.exports = class DataSourceGenerator extends ArtifactGenerator {
150150 promptConnectorConfig ( ) {
151151 debug ( 'prompting for connector config' ) ;
152152 // Check to make sure connector is from connectors list (not custom)
153- const settings = connectors [ this . artifactInfo . connector ]
154- ? connectors [ this . artifactInfo . connector ] [ 'settings' ]
155- : { } ;
156-
153+ const settings =
154+ ( connectors [ this . artifactInfo . connector ] &&
155+ connectors [ this . artifactInfo . connector ] [ 'settings' ] ) ||
156+ { } ;
157157 const prompts = [ ] ;
158+
158159 // Create list of questions to prompt the user
159160 Object . entries ( settings ) . forEach ( ( [ key , setting ] ) => {
160161 // Set defaults and merge with `setting` to override properties
You can’t perform that action at this time.
0 commit comments