1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(waiting-room): search endpoints by edge group name EE-5965 (#10072)

This commit is contained in:
cmeng 2023-08-17 14:47:09 +12:00 committed by GitHub
parent 95424c322d
commit 6290e9facc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 5 deletions

View file

@ -70,6 +70,7 @@ export function useEnvironments({
select: (groups) =>
Object.fromEntries(groups.map((g) => [g.Id, g.Name] as const)),
});
const environmentEdgeGroupsQuery = useEdgeGroups({
select: (groups) =>
_.groupBy(
@ -80,6 +81,7 @@ export function useEnvironments({
(env) => env.id
),
});
const tagsQuery = useTags({
select: (tags) =>
Object.fromEntries(tags.map((tag) => [tag.ID, tag.Name] as const)),