You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An app can integrate with Grid by creating an iframe and listening to a postMessage (demo here).
When an image has a collection, the collections are not correctly represented in the postMessage data.
It looks like the cause is either in thesesus or Grid failing to follow the argo spec.
Grid will getEntity to craft the payload of a postMessage, this calls out to thesesus, ultimately landing here and reaching the RHS of the ternary. This is because collections in the Grid API are an array of objects and thesesus is only working on objects.
Steps to reproduce
Upload image
Add image to collection
View the image in the media-api and observe the data on the collections prop
Run an app that iframes Grid (editions-card-builder, facia-tool or even the demo linked above)
Add the following event listener on the window to log any messages:
Short description
An app can integrate with Grid by creating an iframe and listening to a postMessage (demo here).
When an image has a collection, the collections are not correctly represented in the postMessage data.
It looks like the cause is either in thesesus or Grid failing to follow the argo spec.
Grid will
getEntity
to craft the payload of a postMessage, this calls out to thesesus, ultimately landing here and reaching the RHS of the ternary. This is becausecollections
in the Grid API are an array of objects and thesesus is only working on objects.Steps to reproduce
collections
propcollections
being the wrong shape (an array of empty objects, rather than an array of collections)Actual results (including screenshots)
Expected results (including screenshots)
OS and browser details
All environments.
The text was updated successfully, but these errors were encountered: