提交 d55a9d4c 编写于 作者: A Alfredo Sumaran

Fix tree generation when filtering by name

上级 1604c764
......@@ -33,7 +33,8 @@ export default class GroupsStore {
Object.keys(mappedGroups).forEach((key) => {
const currentGroup = mappedGroups[key];
// If the group is not at the root level, add it to its parent array of subGroups.
if (currentGroup.parentId) {
const parentGroup = mappedGroups[currentGroup['parentId']];
if (currentGroup.parentId && parentGroup) {
mappedGroups[currentGroup.parentId].subGroups[currentGroup.id] = currentGroup;
mappedGroups[currentGroup.parentId].isOpen = true; // Expand group if it has subgroups
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册