Fix use-strict issue with connectors after merge
fixing use-strict issue with connectors after merge #2632
This commit is contained in:
commit
a34f321d2b
|
@ -423,7 +423,7 @@ function dataSourcesFromConfig(name, config, connectorRegistry, registry) {
|
|||
config.connector = require(connectorPath);
|
||||
}
|
||||
}
|
||||
if (!config.connector.name)
|
||||
if (config.connector && typeof config.connector === 'object' && !config.connector.name)
|
||||
config.connector.name = name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue