Skip to content

Commit 49782b9

Browse files
authored
Merge pull request #14985 from nextcloud/bugfix/14962/fix-public-folder-open
Check if OCA.Files.App is available before calling
2 parents acba430 + 07f8aee commit 49782b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/js/fileactions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@
671671
icon: '',
672672
actionHandler: function (filename, context) {
673673
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
674-
if (OCA.Files.App.getActiveView() !== 'files') {
674+
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
675675
OCA.Files.App.setActiveView('files');
676676
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
677677
} else {

0 commit comments

Comments
 (0)