GroupStatisticsCard cannot handle null for ageAvg etc. #1379

Closed
opened 2025-10-03 18:40:37 +02:00 by magicfelix · 4 comments
Member

For my group with just one member, a person without a date of birth, the Group page fails to load. It is just empty. After setting a dob, the page works.

{
	"statistics": {
		"members": 1,
		"ageAvg": null,
		"ageRangeMin": null,
		"ageRangeMax": null,
		"__typename": "GroupStatisticsType"
	}
}
For my group with just one member, a person without a date of birth, the Group page fails to load. It is just empty. After setting a dob, the page works. ``` { "statistics": { "members": 1, "ageAvg": null, "ageRangeMin": null, "ageRangeMax": null, "__typename": "GroupStatisticsType" } } ```
Author
Member

changed the description

changed the description
Owner

assigned to @hansegucker

assigned to @hansegucker
Owner

mentioned in merge request !3603

mentioned in merge request !3603
Owner

mentioned in commit bbb48f874d

mentioned in commit bbb48f874d7f40b5078203d53c94070835fbffc8
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core#1379
No description provided.