Merge pull request #11274 from influxdata/fix/update-telegraf-bucket

fix(ui/dataLoaders): Fix update telegraf config
pull/11306/head
Iris Scholten 2019-01-18 11:48:52 -08:00 committed by GitHub
commit c64f528012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ export const createOrUpdateTelegrafConfigAsync = (authToken: string) => async (
if (telegrafConfigID) {
const telegrafConfig = await getTelegrafConfig(telegrafConfigID)
const id = _.get(telegrafConfig, '0.id', '')
const id = _.get(telegrafConfig, 'id', '')
await updateTelegrafConfig(id, {...telegrafConfig, plugins})
dispatch(setTelegrafConfigID(id))