Fix files view change and undefined currentFileList

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/28879/head
John Molakvoæ 2021-09-17 10:42:09 +07:00 committed by backportbot[bot]
parent 021d5ab7ae
commit cb30254d51
1 changed files with 1 additions and 1 deletions

@ -41,7 +41,7 @@
actionHandler: function (fileName, context) {
var fileModel = context.fileInfoModel;
OC.Apps.hideAppSidebar($('.detailsView'));
OCA.Files.App.setActiveView('files', {silent: true});
OCA.Files.App.setActiveView('files');
OCA.Files.App.fileList.changeDirectory(fileModel.get('path'), true, true).then(function() {
OCA.Files.App.fileList.scrollTo(fileModel.get('name'));
});