Update to /pkg/selectors/sharepoint.go

Bug fix: SharePoint selector misalignmet that causes panic on details command.
This commit is contained in:
Danny Adams 2023-01-21 17:41:21 -05:00
parent 6d615810cd
commit 8f556c59a4

View File

@ -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