Allow the ID field to be displayed in the diagram.

Allow the ID field to be displayed in the diagram. I have replace "Id" by "ID"
This commit is contained in:
Max Duca 2022-12-21 11:06:21 +01:00 committed by Hugo Bernier
parent 7ea3644105
commit a1c88e5ae1
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ const getSPSiteData = async (spfxContext: any, force?: boolean, progress?: (numb
// Fields
const fields = (await sp.web.lists.getById(list.Id).fields.filter("Hidden ne 1")())
.filter(f => !f.Hidden && (f as any).LookupList !== "AppPrincipals" &&
((f as any).CanBeDeleted || (f as any).InternalName === "Title" || (f as any).InternalName === "Id")
((f as any).CanBeDeleted || (f as any).InternalName === "Title" || (f as any).InternalName === "ID")
)
//.sort((a,b) => a.InternalName.charCodeAt(0) - b.InternalName.charCodeAt(0) );
table.fields = fields.map(f => {
@ -124,4 +124,4 @@ const getSPSiteData = async (spfxContext: any, force?: boolean, progress?: (numb
return spSiteData
}
export default getSPSiteData;
export default getSPSiteData;