Skip to content

Commit

Permalink
Merge pull request #8337 from owncloud/use-file_source-for-share-grou…
Browse files Browse the repository at this point in the history
…ping

fix: group shares by file_source instead of file_target
  • Loading branch information
JammingBen authored Jan 31, 2023
2 parents 783c989 + 7dc0ab3 commit 1c89531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/helpers/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function aggregateResourceShares(
}
if (incomingShares) {
shares = addSharedWithToShares(shares)
return orderBy(shares, ['file_target', 'permissions'], ['asc', 'desc']).map((share) => {
return orderBy(shares, ['file_source', 'permissions'], ['asc', 'desc']).map((share) => {
const resource = buildSharedResource(
share,
incomingShares,
Expand Down

0 comments on commit 1c89531

Please sign in to comment.