mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix navigator folder controller [SCI-8508]
This commit is contained in:
parent
1b01cc5407
commit
cd8b49f220
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue