Skip to content

Conversation

@Chithra582
Copy link

Issue: #353

Fixed a bug where photoCount in the Event schema could be undefined, leading to incorrect counts or NaN values when incremented.
Initialized photoCount with a default value and added basic coordinate validation to ensure consistent event data.

@23abdul23
Copy link
Contributor

@Chithra582

When did u encounter this bug?

Explain the steps to recreate the bug.

@Chithra582
Copy link
Author

I have added default: 0 and required: true to photoCount to prevent undefined/NaN values and also added validation for locationCenter.coordinates to ensure valid [longitude, latitude] values.

@23abdul23
Copy link
Contributor

I'm not asking the solution

In asking how to encounter this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants