Skip to content

Commit

Permalink
Modified member-about recent spaces trackById to verify the item exis…
Browse files Browse the repository at this point in the history
…ts before trying to return it's UID.
  • Loading branch information
amenconi committed Mar 9, 2024
1 parent e7bf12a commit b8f6aec
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit b8f6aec

Please sign in to comment.