AnnoListPanel: Fix interpolation of variables in tags (#42318)

This commit is contained in:
François Dautrême
2021-11-30 13:41:03 -05:00
committed by GitHub
parent 4d55c6fe51
commit 1d4b2593ec
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) {