rawText queries should have blank labels for now

pull/1164/head
Luke Morris 2017-04-03 17:22:48 -07:00
parent 271728d3bf
commit d497dbf758
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ class CellEditorOverlay extends Component {
newCell.type = cellWorkingType
newCell.queries = queriesWorkingDraft.map((q) => {
const query = q.rawText || buildInfluxQLQuery(timeRange, q)
const label = q.rawText || `${q.measurement}.${q.fields[0].field}`
const label = q.rawText ?
"" :
`${q.measurement}.${q.fields[0].field}`
return {
queryConfig: q,