mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
3107459e57
commit
9c50296a07
@ -82,11 +82,9 @@ export const VisualInfluxQLEditor = (props: Props): JSX.Element => {
|
|||||||
// is used in both memoized and un-memoized parts, so we have no choice
|
// is used in both memoized and un-memoized parts, so we have no choice
|
||||||
const getTagKeys = useMemo(
|
const getTagKeys = useMemo(
|
||||||
() => async () => {
|
() => async () => {
|
||||||
const selectedTagKeys = new Set(query.tags?.map((tag) => tag.key));
|
return [...(await allTagKeys)];
|
||||||
|
|
||||||
return [...(await allTagKeys)].filter((tagKey) => !selectedTagKeys.has(tagKey));
|
|
||||||
},
|
},
|
||||||
[query.tags, allTagKeys]
|
[allTagKeys]
|
||||||
);
|
);
|
||||||
|
|
||||||
const groupByList = useMemo(() => {
|
const groupByList = useMemo(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user