Browse Source

Merge pull request #14985 from nextcloud/bugfix/14962/fix-public-folder-open

Check if OCA.Files.App is available before calling
tags/v16.0.0RC1
Morris Jobke 5 years ago
parent
commit
49782b9f4c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files/js/fileactions.js

+ 1
- 1
apps/files/js/fileactions.js View File

@@ -671,7 +671,7 @@
icon: '',
actionHandler: function (filename, context) {
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
if (OCA.Files.App.getActiveView() !== 'files') {
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
OCA.Files.App.setActiveView('files');
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
} else {

Loading…
Cancel
Save