Skip to content

Commit

Permalink
Removed caching from fetchProjectContentColumns causing issue 2.15 #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Oct 17, 2023
1 parent f39ed2b commit e35aace
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions SharePointFramework/PortfolioWebParts/src/data/index.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ import * as strings from 'PortfolioWebPartsStrings'
import {
DataSource,
DataSourceService,
DefaultCaching,
getUserPhoto,
IGraphGroup,
PortalDataService,
@@ -771,8 +770,7 @@ export class DataAdapter implements IPortfolioWebPartsDataAdapter {
strings.ProjectContentColumnsListName
)
const columnItems = await projectContentColumnsList.items
.select(...Object.keys(new SPProjectContentColumnItem()))
.using(DefaultCaching)<SPProjectContentColumnItem[]>()
.select(...Object.keys(new SPProjectContentColumnItem()))()
const filteredColumnItems = columnItems.filter(
(col) =>
col.GtDataSourceCategory === dataSourceCategory ||
@@ -800,8 +798,7 @@ export class DataAdapter implements IPortfolioWebPartsDataAdapter {
persistRenderAs && 'GtFieldDataType'
].filter(Boolean)
)
const update = await list.items.getById(columnItem.Id).update(properties)
return update
return list.items.getById(columnItem.Id).update(properties)
} catch (error) {
throw new Error(error)
}

0 comments on commit e35aace

Please sign in to comment.