Skip to content

Commit

Permalink
rm console statements
Browse files Browse the repository at this point in the history
  • Loading branch information
balaji-jr committed Jun 11, 2024
1 parent 247e0f5 commit a99e618
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ export class DataSource extends DataSourceWithBackend<MyQuery, MyDataSourceOptio
let isHeadersMadeFromData = false;

const setHeadersFromData = () => {
console.log("setting headers from data")
if (array.length > 0) {
const fields = Object.keys(array[0]).map((field) => {
let fieldType = guessFieldTypeFromValue(array[0][field]);
Expand Down Expand Up @@ -221,7 +220,6 @@ export class DataSource extends DataSourceWithBackend<MyQuery, MyDataSourceOptio
return { name: field.name, type: grafanaDatatype };
});
dataFrame = new MutableDataFrame({ fields: headers });
console.log("setting headers from schema")
} else {
setHeadersFromData();
}
Expand Down

0 comments on commit a99e618

Please sign in to comment.