Skip to content

Commit

Permalink
fix(ui): properly map over queryBuilder tags and set default values, …
Browse files Browse the repository at this point in the history
…rather than setting all tags to default values
  • Loading branch information
hoorayimhelping committed Dec 4, 2019
1 parent 5150039 commit 96762ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/timeMachine/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,10 @@ const initialQueryBuilderState = (
bucketsStatus: RemoteDataState.NotStarted,
functions: [],
aggregateWindow: {period: 'auto'},
tags: initialStateHelper().queryBuilder.tags,
tags: builderConfig.tags.map(() => {
const [defaultTag] = initialStateHelper().queryBuilder.tags
return defaultTag
}),
}
}

Expand Down

0 comments on commit 96762ac

Please sign in to comment.