nextcloud/apps
Szymon Kłos 44b9293f72 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 [ERROR] files: Error while opening sidebar Object
log @ index.mjs:54
index.mjs:54 [ERROR] files: Error while opening sidebar Objectapp: "files"error: 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-02 06:23:05 +00:00
..
admin_audit Merge pull request #54906 from nextcloud/backport/54870/stable32 2025-09-08 22:46:22 +02:00
cloud_federation_api fix(cloud-federation-api): align inviteAccepted parameter naming with spec 2025-10-28 20:22:43 +01:00
comments fix(l10n): Update translations from Transifex 2025-11-02 00:13:36 +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-02 00:13:36 +00:00
dav fix(l10n): Update translations from Transifex 2025-11-02 00:13:36 +00:00
encryption fix(l10n): Update translations from Transifex 2025-11-01 00:13:35 +00:00
federatedfilesharing fix(l10n): Update translations from Transifex 2025-10-30 00:13:22 +00:00
federation fix(l10n): Update translations from Transifex 2025-09-28 00:13:26 +00:00
files Do not fail on missing sidebar in files list 2025-11-02 06:23:05 +00:00
files_external fix(l10n): Update translations from Transifex 2025-10-26 00:13:27 +00:00
files_reminders fix(l10n): Update translations from Transifex 2025-10-28 00:13:50 +00:00
files_sharing fix(l10n): Update translations from Transifex 2025-10-31 00:13:53 +00:00
files_trashbin fix(files): Always return a valid mimetype 2025-10-06 11:24:18 +00:00
files_versions fix(l10n): Update translations from Transifex 2025-10-05 00:13:19 +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-10-19 00:12:30 +00:00
profile fix(l10n): Update translations from Transifex 2025-10-09 00:25:35 +00:00
provisioning_api fix(l10n): Update translations from Transifex 2025-10-29 00:13:52 +00:00
settings Merge pull request #56043 from nextcloud/backport/55462/stable32 2025-11-02 00:35:06 +01:00
sharebymail fix(l10n): Update translations from Transifex 2025-09-22 00:13:32 +00:00
systemtags fix(l10n): Update translations from Transifex 2025-10-26 00:13:27 +00:00
testing chore: run rector 2025-07-01 22:45:52 +02:00
theming refactor(theming): migrate ThemingDefaults to OCP\AppFramework\Services\IAppConfig 2025-11-01 17:14:02 +00:00
twofactor_backupcodes fix(l10n): Update translations from Transifex 2025-11-02 00:13:36 +00:00
updatenotification fix(l10n): Update translations from Transifex 2025-11-01 00:13:35 +00:00
user_ldap fix(l10n): Update translations from Transifex 2025-11-01 00:13:35 +00:00
user_status fix(l10n): Update translations from Transifex 2025-09-23 00:13:38 +00:00
weather_status fix(l10n): Update translations from Transifex 2025-10-19 00:12:30 +00:00
webhook_listeners fix(l10n): Update translations from Transifex 2025-10-31 00:13:53 +00:00
workflowengine fix(l10n): Update translations from Transifex 2025-10-26 00:13:27 +00:00