AnnoListPanel: Fix interpolation of variables in tags (#42318)
This commit is contained in:
@@ -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