Skip to content

Commit

Permalink
perf: perm tree search
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed May 27, 2024
1 parent 81da9e0 commit c103253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/assets/api/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_queryset_for_assets(self):
include_assets = self.request.query_params.get('assets', '0') == '1'
if not self.instance or not include_assets:
return Asset.objects.none()
if self.instance.is_org_root():
if not self.request.GET.get('search') and self.instance.is_org_root():
return Asset.objects.none()
if query_all:
assets = self.instance.get_all_assets()
Expand Down

0 comments on commit c103253

Please sign in to comment.