diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-04-08 12:13:08 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-04-08 12:13:08 +0300 |
commit | 07f8aee6fe6c9ed757b8fb268cdc869eb30c5065 (patch) | |
tree | 84e330a140408489d7b45bf9f467825bbf125303 /apps | |
parent | acba430246bc8815c368ef19e2c169769ca897ea (diff) |
Check if OCA.Files.App is available before calling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-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 { |