mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataLinks: suggestions menu improvements (#19396)
* Deduplicate series labels in datalinks variables suggestions * Allways show all variables available in datalinks suggestions
This commit is contained in:
@@ -77,7 +77,10 @@ export const getPanelLinksVariableSuggestions = (): VariableSuggestion[] => [
|
||||
];
|
||||
|
||||
const getSeriesVars = (dataFrames: DataFrame[]) => {
|
||||
const labels = _.flatten(dataFrames.map(df => Object.keys(df.labels || {})));
|
||||
const labels = _.chain(dataFrames.map(df => Object.keys(df.labels || {})))
|
||||
.flatten()
|
||||
.uniq()
|
||||
.value();
|
||||
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user