[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:
co-authored by
François Dautrême
parent
305ac2ee50
commit
87359de4ca
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user