Skip to content

Commit

Permalink
[fb] Fix render method call for new storage browser flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 committed Aug 4, 2023
1 parent 481b1d3 commit 763db62
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/filebrowser/src/filebrowser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,6 @@ def listdir_paged(request, path):
filter=? - Specify a substring filter to search for in
the filename field.
"""
if ENABLE_NEW_STORAGE_BROWSER.get():
return render('storage_browser.mako', request, {})

path = _normalize_path(path)

if not request.fs.isdir(path):
Expand Down Expand Up @@ -630,7 +627,11 @@ def listdir_paged(request, path):
'is_embeddable': request.GET.get('is_embeddable', False),
's3_listing_not_allowed': s3_listing_not_allowed
}
return render('listdir.mako', request, data)

if ENABLE_NEW_STORAGE_BROWSER.get():
return render('storage_browser.mako', request, data)
else:
return render('listdir.mako', request, data)


def scheme_absolute_path(root, path):
Expand Down

0 comments on commit 763db62

Please sign in to comment.