diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-08 15:31:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 15:31:52 +0100 |
commit | 49782b9f4c7e8aba28f3957909ccc08248880a40 (patch) | |
tree | 84e330a140408489d7b45bf9f467825bbf125303 | |
parent | acba430246bc8815c368ef19e2c169769ca897ea (diff) | |
parent | 07f8aee6fe6c9ed757b8fb268cdc869eb30c5065 (diff) | |
download | nextcloud-server-49782b9f4c7e8aba28f3957909ccc08248880a40.tar.gz nextcloud-server-49782b9f4c7e8aba28f3957909ccc08248880a40.zip |
Merge pull request #14985 from nextcloud/bugfix/14962/fix-public-folder-open
Check if OCA.Files.App is available before calling
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index bb91842fa81..03d530e357a 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -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 { |