From b8f6aec11c5812a06a2ea88e3379718285070b87 Mon Sep 17 00:00:00 2001 From: Alec Menconi Date: Fri, 8 Mar 2024 19:09:12 -0500 Subject: [PATCH] Modified member-about recent spaces trackById to verify the item exists before trying to return it's UID. --- .../components/member-about/member-about.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/components/member/components/member-about/member-about.component.ts b/src/app/components/member/components/member-about/member-about.component.ts index 15f2db9..3b65336 100644 --- a/src/app/components/member/components/member-about/member-about.component.ts +++ b/src/app/components/member/components/member-about/member-about.component.ts @@ -63,7 +63,13 @@ export class MemberAboutComponent implements OnInit { this.drawerVisible$.next(false); } + /* public trackByUid(index: number, item: any): number { return item.uid; } + */ + + public trackByUid(index: number, item: any): any { + return item ? item.uid : undefined; + } }