Skip to content

Commit

Permalink
refactor(ShareDetails): Prevent undefined errors for share.permissions
Browse files Browse the repository at this point in the history
Signed-off-by: fenn-cs <[email protected]>
  • Loading branch information
Fenn-CS committed Jun 12, 2024
1 parent b3e4270 commit 2863ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_sharing/src/mixins/ShareDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


import Share from '../models/Share.js'
import Config from '../services/ConfigService.js'

export default {
methods: {
Expand Down Expand Up @@ -56,7 +57,7 @@ export default {
user: shareRequestObject.shareWith,
share_with_displayname: shareRequestObject.displayName,
subtitle: shareRequestObject.subtitle,
permissions: shareRequestObject.permissions,
permissions: shareRequestObject.permissions ?? new Config().defaultPermissions,
expiration: '',
}

Expand Down

0 comments on commit 2863ad5

Please sign in to comment.