Browse Source

perf: 修改应用授权树,没有的时候不显示

pull/6950/head
ibuler 3 years ago committed by Jiangjie.Bai
parent
commit
08cd91c426
  1. 2
      apps/applications/api/mixin.py

2
apps/applications/api/mixin.py

@ -32,6 +32,8 @@ class SerializeApplicationToTreeNodeMixin:
return node
def serialize_applications_with_org(self, applications):
if not applications:
return []
root_node = self.create_root_node()
tree_nodes = [root_node]
organizations = self.filter_organizations(applications)

Loading…
Cancel
Save