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 <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS committed Apr 2, 2024
1 parent f59aa61 commit 1fe8f1c
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
@@ -1,4 +1,5 @@
import Share from '../models/Share.js'
import Config from '../services/ConfigService.js'

export default {
methods: {
Expand Down Expand Up @@ -50,7 +51,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 1fe8f1c

Please sign in to comment.