1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(edge/update): select endpoints to update [EE-4043] (#7602)

This commit is contained in:
Chaim Lev-Ari 2022-09-18 14:42:18 +03:00 committed by GitHub
parent 36e7981ab7
commit 4d123895ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1192 additions and 130 deletions

View file

@ -13,6 +13,10 @@ async function getEdgeGroups() {
}
}
export function useEdgeGroups() {
return useQuery(['edge', 'groups'], getEdgeGroups);
export function useEdgeGroups<T = EdgeGroup[]>({
select,
}: {
select?: (groups: EdgeGroup[]) => T;
} = {}) {
return useQuery(['edge', 'groups'], getEdgeGroups, { select });
}