Merge pull request #3887 from influxdata/fix/tempVars-titles
Fix template variables in title when no valuespull/10616/head
commit
a0e3d93c54
|
@ -78,7 +78,7 @@ export default class LayoutCell extends Component<Props> {
|
|||
(acc, template) => {
|
||||
const {tempVar} = template
|
||||
const templateValue = template.values.find(v => v.localSelected)
|
||||
const value = _.get(templateValue, 'value', str)
|
||||
const value = _.get(templateValue, 'value', tempVar)
|
||||
const regex = new RegExp(tempVar, 'g')
|
||||
return acc.replace(regex, value)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue