[v8.3.x] AnnoListPanel: Fix interpolation of variables in tags (#42544)

Co-authored-by: François Dautrême <4825058+francoisdtm@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-11-30 20:01:50 +01:00
committed by GitHub
co-authored by François Dautrême
parent 305ac2ee50
commit 87359de4ca
2 changed files with 2 additions and 2 deletions
@@ -76,7 +76,7 @@ async function setupTestContext({
onOptionsChange: jest.fn(),
options,
renderCounter: 1,
replaceVariables: jest.fn(),
replaceVariables: (str: string) => str,
timeRange: getDefaultTimeRange(),
timeZone: 'utc',
title: 'Test Title',
@@ -113,7 +113,7 @@ export class AnnoListPanel extends PureComponent<Props, State> {
}
if (options.tags && options.tags.length) {
params.tags = options.tags;
params.tags = options.tags.map((tag) => this.props.replaceVariables(tag));
}
if (queryTags.length) {