From a1c88e5ae1ffce07a4e265a70bf6be58e757d8c8 Mon Sep 17 00:00:00 2001 From: Max Duca <17979332+MaxDuca@users.noreply.github.com> Date: Wed, 21 Dec 2022 11:06:21 +0100 Subject: [PATCH] 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" --- .../webparts/spSiteErDiagram/components/helpers/SPSiteData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts index 5b27c375a..a3a0d9c08 100644 --- a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts @@ -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; \ No newline at end of file +export default getSPSiteData;