Bug: (resource) Proxy missing information for sib-display
Sib-display component's have a resource reference, containing model data for the resource being displayed
For circle-members (e.g. https://api.test-paris.happy-dev.fr/circle-members/45/) this should contain a reference to circle
field. Testing in jsbin this is the case (https://jsbin.com/mumixehoza/1/edit?html,js,console,output) but testing live, only is_admin
and user
fields are stored
To reproduce:
- run sib-app locally from
staging
orrefresh-sib-delete
branches - within the DOMContentLoaded event handler in index.js add the following code
setTimeout(() => {
Array.from(document.querySelectorAll('sib-display'))
.forEach((e) => {
(async () => {
resource = await e.component.resource;
console.log(resource);
id = (await e.component.resource.circle)['@id'];
console.log(id);
})();
});
}, 6000);