mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
Keep query keys consistent (#29855)
This commit is contained in:
parent
af47d28499
commit
6cdf0ab5d9
@ -551,13 +551,11 @@ export const queryReducer = (state: ExploreItemState, action: AnyAction): Explor
|
||||
nextQueries.push(generateNewKeyAndAddRefIdIfMissing(query, nextQueries, i));
|
||||
});
|
||||
|
||||
const nextQueryKeys: string[] = nextQueries.map(query => query.key!);
|
||||
|
||||
return {
|
||||
...state,
|
||||
queries: nextQueries,
|
||||
logsHighlighterExpressions: undefined,
|
||||
queryKeys: nextQueryKeys,
|
||||
queryKeys: getQueryKeys(nextQueries, state.datasourceInstance),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user