From 182cedee76aa8a153c13557e7b76c2ca81feb828 Mon Sep 17 00:00:00 2001 From: Remi Blom-Ohlsen Date: Thu, 12 Sep 2024 10:04:49 +0200 Subject: [PATCH] Add 'Path' to getHubSiteProjects sitesQuery --- .../src/components/ProgramAdministration/types.ts | 1 + SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/types.ts b/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/types.ts index 05ef35ab9..753378e8b 100644 --- a/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/types.ts +++ b/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/types.ts @@ -6,6 +6,7 @@ export interface IProgramAdministrationProject extends Record { SiteId: string Title: string SPWebURL: string + Path?: string } export interface IProgramAdministrationProps { diff --git a/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts b/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts index ae4e4b355..8ab13daa1 100644 --- a/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts +++ b/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts @@ -861,7 +861,7 @@ export class SPDataAdapter RowLimit: 500, StartRow: 0, ClientType: 'ContentSearchRegular', - SelectProperties: ['SPWebURL', 'Title', 'SiteId'], + SelectProperties: ['SPWebURL', 'Title', 'SiteId', 'Path'], TrimDuplicates: false } @@ -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'] } }) },