Merge pull request #3485 from influxdata/fixes/custom-time-indicator

Check for query text in CustomTimeIndicator
pull/10616/head
Brandon Farmer 2018-05-18 09:46:44 -07:00 committed by GitHub
commit 93ea09f5f1
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ interface Props {
const CustomTimeIndicator: SFC<Props> = ({queries}) => {
const q = queries.find(
query => query.text.includes(TEMP_VAR_DASHBOARD_TIME) === false
query =>
_.get(query, 'text', '').includes(TEMP_VAR_DASHBOARD_TIME) === false
)
const customLower = _.get(q, ['queryConfig', 'range', 'lower'], null)
const customUpper = _.get(q, ['queryConfig', 'range', 'upper'], null)