From e8ccd0ec96f0da9663bf5497177133788ddebf12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Thu, 21 Aug 2025 11:48:15 +0200 Subject: [PATCH] fix(files_sharing): bypass sidebar call and return null straight away MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files_sharing/src/actions/sharingStatusAction.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/src/actions/sharingStatusAction.ts b/apps/files_sharing/src/actions/sharingStatusAction.ts index a4129faff76..336fffb8bdd 100644 --- a/apps/files_sharing/src/actions/sharingStatusAction.ts +++ b/apps/files_sharing/src/actions/sharingStatusAction.ts @@ -129,7 +129,8 @@ export const action = new FileAction({ // You need read permissions to see the sidebar if ((node.permissions & Permission.READ) !== 0) { window.OCA?.Files?.Sidebar?.setActiveTab?.('sharing') - return sidebarAction.exec(node, view, dir) + sidebarAction.exec(node, view, dir) + return null } // Should not happen as the enabled check should prevent this