File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
components/sharepoint/actions Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ export default {
6464 queryString : this . queryString ,
6565 queryTemplate : this . queryTemplate ,
6666 } ,
67- fields : this . select ,
67+ fields : this . select
68+ ? this . select . split ( "," ) . map ( ( f ) => f . trim ( ) )
69+ : undefined ,
6870 size : this . size ,
6971 sortProperties : [
7072 {
Original file line number Diff line number Diff line change @@ -19,42 +19,39 @@ export default {
1919 "siteId" ,
2020 ] ,
2121 withLabel : true ,
22- reloadProps : true ,
2322 } ,
2423 driveId : {
2524 propDefinition : [
2625 sharepoint ,
2726 "driveId" ,
2827 ( c ) => ( {
29- siteId : c . siteId ?. __lv ?. value || c . siteId ,
28+ siteId : c . siteId ?. value || c . siteId ,
3029 } ) ,
3130 ] ,
3231 withLabel : true ,
33- reloadProps : true ,
3432 } ,
3533 folderId : {
3634 propDefinition : [
3735 sharepoint ,
3836 "folderId" ,
3937 ( c ) => ( {
40- siteId : c . siteId ?. __lv ?. value || c . siteId ,
41- driveId : c . driveId ?. __lv ?. value || c . driveId ,
38+ siteId : c . siteId ?. value || c . siteId ,
39+ driveId : c . driveId ?. value || c . driveId ,
4240 } ) ,
4341 ] ,
4442 label : "Folder" ,
4543 description : "The folder to browse. Leave empty to browse the root of the drive." ,
4644 optional : true ,
4745 withLabel : true ,
48- reloadProps : true ,
4946 } ,
5047 fileOrFolderIds : {
5148 propDefinition : [
5249 sharepoint ,
5350 "fileOrFolderId" ,
5451 ( c ) => ( {
55- siteId : c . siteId ?. __lv ?. value || c . siteId ,
56- driveId : c . driveId ?. __lv ?. value || c . driveId ,
57- folderId : c . folderId ?. __lv ?. value || c . folderId ,
52+ siteId : c . siteId ?. value || c . siteId ,
53+ driveId : c . driveId ?. value || c . driveId ,
54+ folderId : c . folderId ?. value || c . folderId ,
5855 } ) ,
5956 ] ,
6057 type : "string[]" ,
@@ -66,8 +63,8 @@ export default {
6663 methods : {
6764 resolveValue ( prop ) {
6865 if ( ! prop ) return null ;
69- if ( typeof prop === "object" && prop . __lv ) {
70- return prop . __lv . value ;
66+ if ( typeof prop === "object" && prop ?. value ) {
67+ return prop . value ;
7168 }
7269 return prop ;
7370 } ,
You can’t perform that action at this time.
0 commit comments