Guard against no field in buildDefaultYLabel
parent
56dcc31d82
commit
f545f9cddd
|
@ -112,5 +112,9 @@ function getRolesForUser(roles, user) {
|
|||
export const buildDefaultYLabel = queryConfig => {
|
||||
return queryConfig.rawText
|
||||
? ''
|
||||
: `${queryConfig.measurement}.${queryConfig.fields[0].field}`
|
||||
: `${queryConfig.measurement}.${_.get(
|
||||
queryConfig,
|
||||
['fields', '0', 'field'],
|
||||
''
|
||||
)}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue