Update to /pkg/selectors/sharepoint.go
Bug fix: SharePoint selector misalignmet that causes panic on details command.
This commit is contained in:
parent
6d615810cd
commit
8f556c59a4
@ -224,7 +224,7 @@ func (s *sharePoint) AllData() []SharePointScope {
|
||||
scopes,
|
||||
makeScope[SharePointScope](SharePointLibrary, Any()),
|
||||
makeScope[SharePointScope](SharePointList, Any()),
|
||||
makeScope[SharePointScope](SharePointPage, Any()),
|
||||
makeScope[SharePointScope](SharePointPageFolder, Any()),
|
||||
)
|
||||
|
||||
return scopes
|
||||
@ -323,7 +323,7 @@ func (s *sharePoint) PageItems(pages, items []string, opts ...option) []SharePoi
|
||||
scopes = append(
|
||||
scopes,
|
||||
makeScope[SharePointScope](SharePointPage, items).
|
||||
set(SharePointPage, pages, opts...),
|
||||
set(SharePointPageFolder, pages, opts...),
|
||||
)
|
||||
|
||||
return scopes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user