nextcloud/apps
Szymon Kłos 1374b92207 fix(files): Do not fail on missing sidebar in files list
When using richdocuments it was failing in case of shared links
or when user with opened file did a wheel click on a refresh page.
Then new tab appeared but instead opening the file it was doing
nothing (showing the list of files) or downloading the file.

Make code more defensive. I found these logs while debugging:
OCA.Files.Settings initialized
Sidebar.js:19 OCA.Files.Sidebar initialized
ShareSearch.js:16 OCA.Sharing.ShareSearch initialized
comments-app.js:15 OCA.Comments.View initialized
index.mjs:54 files: Error while opening sidebar Object
log @ index.mjs:54
index.mjs:54 files: Error while opening sidebar Objectapp: "files"
TypeError: window.OCA.Files.Sidebar.open is not a function
    at h.exec (http://nc/dist/files-main.js?v=106d16db-0:1:70123)
    at o.openSidebarForFile (http://nc/dist/files-main.js?v=106d16db-0:1:163422)
    at o.handleOpenQueries (http://nc/dist/files-main.js?v=106d16db-0:1:163167)
    at o.openDetails (http://nc/dist/files-main.js?v=106d16db-0:1:162349)
    at fn (http://nc/dist/core-common.js?v=106d16db-0:1:3942538)
    at e.run (http://nc/dist/core-common.js?v=106d16db-0:1:3946900)
    at sa (http://nc/dist/core-common.js?v=106d16db-0:1:3948728)
    at Array.<anonymous> (http://nc/dist/core-common.js?v=106d16db-0:1:3943585)
    at bn (http://nc/dist/core-common.js?v=106d16db-0:1:3942986)level: 2uid: "admin"
       [[Prototype]]: Object
log @ index.mjs:54

Possibly regression from
e7001022c7

Fixes https://github.com/nextcloud/richdocuments/issues/3815

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2025-11-30 18:25:27 +00:00
..
admin_audit fix(l10n): Update translations from Transifex 2025-11-15 00:13:27 +00:00
cloud_federation_api fix(ocm): normalize protocol to support multi with webdav option 2025-11-11 15:43:54 -01:00
comments fix(l10n): Update translations from Transifex 2025-11-25 00:14:12 +00:00
contactsinteraction fix(l10n): Update translations from Transifex 2025-10-11 00:13:23 +00:00
dashboard fix(l10n): Update translations from Transifex 2025-11-16 00:13:37 +00:00
dav fix: imip set language per user 2025-11-25 14:56:07 +00:00
encryption fix(l10n): Update translations from Transifex 2025-11-27 00:13:45 +00:00
federatedfilesharing fix(l10n): Update translations from Transifex 2025-11-23 00:13:43 +00:00
federation fix(l10n): Update translations from Transifex 2025-11-20 00:14:24 +00:00
files fix(files): Do not fail on missing sidebar in files list 2025-11-30 18:25:27 +00:00
files_external fix(l10n): Update translations from Transifex 2025-11-25 00:14:12 +00:00
files_reminders fix(files_reminder): prevent setting reminder in the past 2025-11-26 09:49:28 +01:00
files_sharing Merge pull request #56657 from nextcloud/backport/56498/stable32 2025-11-27 15:18:46 +01:00
files_trashbin fix(l10n): Update translations from Transifex 2025-11-27 00:13:45 +00:00
files_versions fix(l10n): Update translations from Transifex 2025-11-24 00:14:11 +00:00
lookup_server_connector fix(l10n): Update translations from Transifex 2025-10-11 00:13:23 +00:00
oauth2 fix(l10n): Update translations from Transifex 2025-11-22 00:14:21 +00:00
profile fix(l10n): Update translations from Transifex 2025-11-17 00:13:33 +00:00
provisioning_api fix(l10n): Update translations from Transifex 2025-11-27 00:13:45 +00:00
settings fix(l10n): Update translations from Transifex 2025-11-29 00:13:53 +00:00
sharebymail fix(l10n): Update translations from Transifex 2025-11-23 00:13:43 +00:00
systemtags fix(l10n): Update translations from Transifex 2025-11-30 00:14:02 +00:00
testing chore: run rector 2025-07-01 22:45:52 +02:00
theming fix(l10n): Update translations from Transifex 2025-11-20 00:14:24 +00:00
twofactor_backupcodes fix(l10n): Update translations from Transifex 2025-11-20 00:14:24 +00:00
updatenotification fix(l10n): Update translations from Transifex 2025-11-22 00:14:21 +00:00
user_ldap fix(l10n): Update translations from Transifex 2025-11-29 00:13:53 +00:00
user_status fix(l10n): Update translations from Transifex 2025-11-27 00:13:45 +00:00
weather_status fix(l10n): Update translations from Transifex 2025-11-17 00:13:33 +00:00
webhook_listeners fix(l10n): Update translations from Transifex 2025-11-29 00:13:53 +00:00
workflowengine fix(l10n): Update translations from Transifex 2025-11-25 00:14:12 +00:00