fix(files_sharing): bypass sidebar call and return null straight away

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2025-08-21 11:48:19 +02:00 committed by GitHub
parent eb53d1a700
commit 7f59f39eb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,7 +136,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