DataLinks: Fixes interpolation (formatting) of __all_variables and __url_time_range (#65162)
* DataLinks: Fixes interpolation (formatting) of __all_variables and __url_time_range * simplify if statement
This commit is contained in:
@@ -413,7 +413,7 @@ export const getLinksSupplier =
|
||||
}
|
||||
}
|
||||
|
||||
const variables = {
|
||||
const variables: ScopedVars = {
|
||||
...fieldScopedVars,
|
||||
__value: {
|
||||
text: 'Value',
|
||||
@@ -423,10 +423,12 @@ export const getLinksSupplier =
|
||||
[DataLinkBuiltInVars.keepTime]: {
|
||||
text: timeRangeUrl,
|
||||
value: timeRangeUrl,
|
||||
skipFormat: true,
|
||||
},
|
||||
[DataLinkBuiltInVars.includeVars]: {
|
||||
text: variablesQuery,
|
||||
value: variablesQuery,
|
||||
skipFormat: true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
export interface ScopedVar<T = any> {
|
||||
text?: any;
|
||||
value: T;
|
||||
[key: string]: any;
|
||||
skipUrlSync?: boolean;
|
||||
skipFormat?: boolean;
|
||||
}
|
||||
|
||||
export interface ScopedVars extends Record<string, ScopedVar> {}
|
||||
|
||||
Reference in New Issue
Block a user