We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 230afc3 + 1fa3976 commit 0714e25Copy full SHA for 0714e25
web/src/components/dashboards/perses/datasource-api.ts
@@ -55,7 +55,9 @@ export class OcpDatasourceApi implements DatasourceApi {
55
selector.name,
56
).then((list) => {
57
if (!Array.isArray(list) || list.length === 0) {
58
- throw new Error(this.t('No matching datasource found'));
+ // eslint-disable-next-line no-console
59
+ console.warn('No matching local datasource found');
60
+ return undefined;
61
}
62
const datasource = list[0];
63
return datasource;
0 commit comments