Skip to content

Commit

Permalink
Fix issue where projectinformation was not filterable for programs' t…
Browse files Browse the repository at this point in the history
…imeline
  • Loading branch information
Remi749 committed Apr 25, 2024
1 parent c5698c1 commit 008677e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 3 additions & 4 deletions SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -34,10 +33,7 @@ export const Timeline: FC<ITimelineProps> = (props) => {
<IdPrefixProvider value={fluentProviderId}>
<FluentProvider id={fluentProviderId} className={styles.root} theme={customLightTheme}>
<div className={styles.header}>
<WebPartTitle
title={props.title}
description={props.infoText}
/>
<WebPartTitle title={props.title} description={props.infoText} />
<div className={styles.commandBar}>
<div>
<Toolbar items={menuItems} />
Expand Down

0 comments on commit 008677e

Please sign in to comment.