Skip to content

Commit

Permalink
Revert the "helpful message" code
Browse files Browse the repository at this point in the history
Remove the error message when there is no data or query. The problem
is, that is a valid usecase that we need to use.
  • Loading branch information
emanchado authored and spbnick committed Aug 28, 2020
1 parent b9c8630 commit e4f1a3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/singlevalue_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ class SingleValueCtrl extends MetricsPanelCtrl {
}

const results = dataList[0];
const data = results && results.rows && results.rows[0];
if (!data) {
this.text = "No result rows. Make sure you are using 'Table' format and not 'Time series' format.";
this.url = null;

if (!results) {
return;
}

const data = results.rows && results.rows[0];

// Substitute variables in the two templates
const vars = {};
for (let key in data) {
Expand Down

0 comments on commit e4f1a3e

Please sign in to comment.