Skip to content

Commit

Permalink
Merge branch 'main' into BC-4879-assign-additional-owner-search
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas authored Oct 6, 2023
2 parents f1ed3b4 + cfaa235 commit cfc8531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const FileGetter = (req, res, next) => {
}

const files = result.filter((f) => f).map((file) => {
if (file.permissions[0].refId === userId) {
if (file.permissions[0]?.refId === userId) {
Object.assign(file, {
userIsOwner: true,
});
Expand Down

0 comments on commit cfc8531

Please sign in to comment.