AnnoListPanel: Fix interpolation of variables in tags (#42318)
This commit is contained in:
1 parent
4d55c6fe51
commit
1d4b2593ec
2 files changed
+2
-2
No files matched your search
@@ -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