Keep query keys consistent (#29855)

This commit is contained in:
Ivana Huckova 2020-12-16 18:24:47 +01:00 committed by GitHub
parent af47d28499
commit 6cdf0ab5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
};
}