Skip to content

Commit

Permalink
Actual fix for #1403
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Jan 25, 2024
1 parent 93becf1 commit 450df88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SharePointFramework/ProgramWebParts/src/data/SPDataAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class SPDataAdapter
this?.spfxContext?.pageContext?.site?.id?.toString()
)
) {
if (item.GtSiteIdLookup?.Title && config && config.showElementPortfolio) {
if (item.GtSiteIdLookup?.Title && config?.showElementProgram) {
return new TimelineContentModel(
item.GtSiteIdLookup?.GtSiteId,
item.GtSiteIdLookup?.Title,
Expand Down Expand Up @@ -451,7 +451,7 @@ export class SPDataAdapter
(col) => col.title === (configItemTitle || 'Prosjektleveranse')
)

if (config && config.showElementPortfolio) {
if (config?.showElementProgram) {
const projectDeliveries = await this.fetchItemsWithSource(
dataSourceName || 'Alle prosjektleveranser',
[
Expand Down

0 comments on commit 450df88

Please sign in to comment.