mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
refactor(ShareDetails): Prevent undefined errors for share.permissions
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
f7eadd8c71
commit
2b62e1794c
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import Share from '../models/Share.js'
|
||||
import Config from '../services/ConfigService.js'
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
|
|
@ -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: '',
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue