nextcloud/apps
Szymon Kłos dc3741a203 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-18 13:27:54 +00:00
..
admin_audit fix(l10n): Update translations from Transifex 2025-11-15 00:13:19 +00:00
cloud_federation_api feat(cloud-federation-api): Make duplicate entries 2025-11-05 20:24:40 +01:00
comments fix(l10n): Update translations from Transifex 2025-11-16 00:13:30 +00:00
contactsinteraction refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
dashboard fix(l10n): Update translations from Transifex 2025-11-16 00:13:30 +00:00
dav fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
encryption fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
federatedfilesharing fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
federation fix(l10n): Update translations from Transifex 2025-11-16 00:13:30 +00:00
files fix(files): Do not fail on missing sidebar in files list 2025-11-18 13:27:54 +00:00
files_external fix: pass only necessary information when deleting mulitple objects 2025-11-18 12:07:53 +08:00
files_reminders fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
files_sharing fix(files_sharing): sidebar link share password checkbox 2025-11-18 04:59:03 +00:00
files_trashbin fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
files_versions fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
lookup_server_connector chore(composer): Bump autoloader 2025-10-27 13:12:47 +01:00
oauth2 refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
profile fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
provisioning_api fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
settings fix(l10n): Update translations from Transifex 2025-11-18 00:14:24 +00:00
sharebymail refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
systemtags fix(l10n): Update translations from Transifex 2025-11-18 00:14:24 +00:00
testing chore(composer): Bump autoloader 2025-10-27 13:12:47 +01:00
theming fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
twofactor_backupcodes fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
updatenotification fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
user_ldap fix(l10n): Update translations from Transifex 2025-11-18 00:14:24 +00:00
user_status fix(l10n): Update translations from Transifex 2025-11-16 00:13:30 +00:00
weather_status fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
webhook_listeners fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00
workflowengine fix(l10n): Update translations from Transifex 2025-11-17 00:13:26 +00:00