Merge pull request #5471 from aignatov-bio/ai-sci-8508-fixed-navigator-folder-controller

Fix navigator folder controller [SCI-8508]
This commit is contained in:
aignatov-bio 2023-05-24 11:10:44 +02:00 committed by GitHub
commit 56a36e96da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,10 +10,8 @@ module Navigator
end
def tree
project_and_folders = project_level_branch(@project_folder, params[:archived] == 'true')
if @project_folder.parent_folder
tree = build_folder_tree(@project_folder, project_and_folders, params[:archived] == 'true')
end
tree = project_level_branch(@project_folder, params[:archived] == 'true')
tree = build_folder_tree(@project_folder, tree)
render json: { items: tree }
end