fix(ui): Ensure telegraf setup instructions has token information

pull/12569/head
Iris Scholten 2019-03-12 13:47:58 -07:00
parent 05c591b478
commit 7865679d71
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ export class TelegrafInstructionsOverlay extends PureComponent<Props> {
private get token(): string {
const {collector, telegrafs} = this.props
const config = telegrafs.find(t => get(collector, 'id', '') === t.id)
const config =
telegrafs.find(t => get(collector, 'id', '') === t.id) || collector
if (!config) {
return ''