Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent crash when version is missing in data using optional chaining #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sam-nnnn
Copy link

No description provided.

@Sam-nnnn
Copy link
Author

Sam-nnnn commented Oct 10, 2024

I believe the 'version' field should be optional because, according to the source code in the OutputData interface (as seen here), the 'version' property is not marked as required. This suggests that there may be cases where the 'version' field is absent, and the code should handle such cases gracefully.

This is my first contribution, so if I've missed anything or need to address any other points, I would really appreciate your guidance. Thank you for your time!

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.

1 participant