Skip to content

Commit

Permalink
fix: resolving public folders with one single file
Browse files Browse the repository at this point in the history
Fixes an issue where resolving public folders with one single file would falsely trigger the default file action. It now opens the actual folder instead.
  • Loading branch information
JammingBen committed Jun 28, 2023
1 parent 2e2985b commit 3141acb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-public-folder-resolving
@@ -0,0 +1,6 @@
Bugfix: Resolving public folders with one single file

Resolving folders with one single file no longer triggers the default file action but opens the actual folder instead.

https://github.com/owncloud/web/pull/9299
https://github.com/owncloud/web/issues/9184
3 changes: 1 addition & 2 deletions packages/web-app-files/src/views/spaces/GenericSpace.vue
Expand Up @@ -520,8 +520,7 @@ export default defineComponent({
},
displayResourceAsSingleResource() {
console.log(!!this.currentFolder?.id)
if (this.paginatedResources.length !== 1) {
if (!!this.currentFolder?.id || this.paginatedResources.length !== 1) {
return false
}
Expand Down

0 comments on commit 3141acb

Please sign in to comment.