From 07f8aee6fe6c9ed757b8fb268cdc869eb30c5065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 8 Apr 2019 11:13:08 +0200 Subject: [PATCH] Check if OCA.Files.App is available before calling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/fileactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index bb91842fa8..03d530e357 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 {