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 PagePing, PageView, and StructuredEvent property getters #363

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

greg-el
Copy link
Contributor

@greg-el greg-el commented Aug 20, 2024

This PR fixes the property getters in PagePing, PageView and StructuredEvent. They were previously attempting to access the .get method of Payload, which didn't take an argument, causing the tracker to throw an error.

They now access nv_pairs with .get when the return type is optional, or with indexing when non-optional.

Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@greg-el greg-el force-pushed the issue/361-fix_getters branch from 484518e to 8761649 Compare August 21, 2024 12:43
@greg-el greg-el merged commit b2c29db into release/1.0.3 Aug 21, 2024
7 checks passed
@greg-el greg-el deleted the issue/361-fix_getters branch August 21, 2024 12:43
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