fix: 修复打开 PERM_SINGLE_ASSET_TO_UNGROUP_NODE 配置时返回两个收藏夹节点的问题

pull/9601/head^2
Bai 2023-02-17 11:07:57 +08:00 committed by Jiangjie.Bai
parent 355af42812
commit d85b024c47
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class UserPermNodeUtil:
def get_ungrouped_node(self):
assets_amount = UserPermAssetUtil(self.user).get_direct_assets().count()
return PermNode.get_favorite_node(assets_amount)
return PermNode.get_ungrouped_node(assets_amount)
def get_top_level_nodes(self, with_unfolded_node=False):
# 是否有节点展开, 展开的节点