-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Is mspa/activityControls.js sufficiently type safe? #12441
Comments
The values in
So that screenshot is actually out of spec @patmmccann ! That's an argument for supporting the de-facto standard. |
Ian please dm me the test page before we merge |
Type of issue
Bug
Description
From my read, it looks like this line in activityControls.js expects an array in every case that the
parsedSections?.[api]
response is not null. However, GPP documentation defines theparsedSections
as an object.As a result, on some sites that have implemented I'm seeing errors like:
Unsurprising, I'm seeing some inconsistency across GPP implementers, but objects appear to be common!
Steps to reproduce
I'm observing this from the outside, but it appears that the combination of object response from GPP parsedSections and usage of
gppControl_usnat
does the trick.Test page
Can provide some URLs where I've observed this in a DM.
Expected results
No type errors.
Actual results
TypeError
Platform details
N/A
Other information
N/A
The text was updated successfully, but these errors were encountered: