We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3254ee commit 13acfabCopy full SHA for 13acfab
lib/datasources/CompositeDatasource.js
@@ -23,11 +23,10 @@ function CompositeDatasource(options) {
23
if (!datasource) {
24
throw new Error("No datasource " + datasourceName + " could be found!");
25
}
26
- if (datasource.enabled === false) {
27
- throw new Error("Datasource " + datasourceName + " must be enabled!");
+ if (datasource.enabled !== false) {
+ this._datasources[datasourceName] = datasource;
28
+ this._datasourceNames.push(datasourceName);
29
- this._datasources[datasourceName] = datasource;
30
- this._datasourceNames.push(datasourceName);
31
32
33
Datasource.extend(CompositeDatasource);
0 commit comments