From 008677eaaa14bce073aa2916d04e73b9d8623004 Mon Sep 17 00:00:00 2001 From: Remi Blom-Ohlsen Date: Thu, 25 Apr 2024 14:07:44 +0200 Subject: [PATCH] Fix issue where projectinformation was not filterable for programs' timeline --- .../ProgramWebParts/src/data/SPDataAdapter.ts | 7 +++---- .../src/components/ProjectTimeline/Timeline/index.tsx | 6 +----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts b/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts index f35381cfc..44f23359e 100644 --- a/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts +++ b/SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts @@ -344,14 +344,13 @@ export class SPDataAdapter const configuration = await this.getPortfolioConfig() const siteId = this.spfxContext.pageContext.site.id.toString() - const { projects } = await this._fetchDataForView( + const { items } = await this.fetchDataForViewBatch( configuration.views[0], configuration, - this.spfxContext.pageContext.legacyPageContext.hubSiteIdhubSiteId, - 'GtSiteIdOWSTEXT' + this.spfxContext.pageContext.legacyPageContext.hubSiteIdhubSiteId ) - const data = projects + const data = items .map((item) => { const properties = _.reduce( item, diff --git a/SharePointFramework/shared-library/src/components/ProjectTimeline/Timeline/index.tsx b/SharePointFramework/shared-library/src/components/ProjectTimeline/Timeline/index.tsx index 212dfd557..194e8e338 100644 --- a/SharePointFramework/shared-library/src/components/ProjectTimeline/Timeline/index.tsx +++ b/SharePointFramework/shared-library/src/components/ProjectTimeline/Timeline/index.tsx @@ -1,4 +1,3 @@ -import { format } from '@fluentui/react' import { FluentProvider, IdPrefixProvider, useId } from '@fluentui/react-components' import { ITimelineItem } from '../../../interfaces/ITimelineItem' import moment from 'moment' @@ -34,10 +33,7 @@ export const Timeline: FC = (props) => {
- +