mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Keep query keys consistent (#29855)
This commit is contained in:
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user