Skip to content

Commit 9a98e07

Browse files
fix incorrect attendee counts in agenda events (#1901)
* Removes null people from the result when no fallback details specified. Closes #1885 * Fixes code formatting Co-authored-by: Gavin Barron <[email protected]>
1 parent d93bde7 commit 9a98e07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/mgt-components/src/components/mgt-people/mgt-people.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ export class MgtPeople extends MgtTemplatedComponent {
440440
}
441441
return null;
442442
});
443+
} else {
444+
// remove null people from the array
445+
this.people = this.people.filter(p => p !== null);
443446
}
444447
} else if (this.resource) {
445448
this.people = await getPeopleFromResource(graph, this.version, this.resource, this.scopes);

0 commit comments

Comments
 (0)