Skip to content

Commit

Permalink
Add 'Path' to getHubSiteProjects sitesQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Sep 12, 2024
1 parent 16f5c3e commit 182cede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface IProgramAdministrationProject extends Record<string, any> {
SiteId: string
Title: string
SPWebURL: string
Path?: string
}

export interface IProgramAdministrationProps {
Expand Down
4 changes: 2 additions & 2 deletions SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export class SPDataAdapter
RowLimit: 500,
StartRow: 0,
ClientType: 'ContentSearchRegular',
SelectProperties: ['SPWebURL', 'Title', 'SiteId'],
SelectProperties: ['SPWebURL', 'Title', 'SiteId', 'Path'],
TrimDuplicates: false
}

Expand Down Expand Up @@ -903,7 +903,7 @@ export class SPDataAdapter
return {
SiteId: item['GtSiteIdOWSTEXT'],
Title: site?.Title ?? item['Title'],
SPWebURL: site && site['SPWebURL']
SPWebURL: site && site['SPWebURL'] || site['Path']
}
})
},
Expand Down

0 comments on commit 182cede

Please sign in to comment.