mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(edge-stack) always show edge group selector [EE-5157] (#8639)
This commit is contained in:
parent
31d956dbcb
commit
0ab7987684
4 changed files with 4 additions and 8 deletions
|
@ -64,11 +64,7 @@ function InnerSelector({
|
|||
}) {
|
||||
const edgeGroupsQuery = useEdgeGroups();
|
||||
|
||||
if (!edgeGroupsQuery.data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const items = edgeGroupsQuery.data.filter(isGroupVisible);
|
||||
const items = (edgeGroupsQuery.data || []).filter(isGroupVisible);
|
||||
|
||||
const valueGroups = _.compact(
|
||||
value.map((id) => items.find((item) => item.Id === id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue