Skip to content

Commit a34f321

Browse files
authored
Fix use-strict issue with connectors after merge
fixing use-strict issue with connectors after merge #2632
2 parents ca3ec13 + 94c786f commit a34f321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ function dataSourcesFromConfig(name, config, connectorRegistry, registry) {
423423
config.connector = require(connectorPath);
424424
}
425425
}
426-
if (!config.connector.name)
426+
if (config.connector && typeof config.connector === 'object' && !config.connector.name)
427427
config.connector.name = name;
428428
}
429429

0 commit comments

Comments
 (0)