Problem/Motivation
When selecting an asset, a javascript error is logged, at the asset is not selected.
Steps to reproduce
Follow the instructions to configue.
Once the Keepicker is open, select an asset.
Nothing appears to happen, but a JS error is logged.
Uncaught TypeError: event.detail.element.permalinks.find(...) is undefined
addKeepickerEventListener https://orange.ddev.site/modules/contrib/keepeek/js/global.js?v=1.0.0:86
Proposed resolution
From debugging, I can see that in line 86 of global.js, the code is looking for the 'whr' version of the asset.
However, in the network response from the keepeek server, the WHR value is returned, but by the time we get to that part of the code, the whr value is nor present in permalinks.

Remaining tasks
Adjust the code in the Keepicker such that the WHR value is available
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| Edit_Keepeek_rtyytr___Orange_Brand_and_global_js_—_orange_and_ContentAccess_php_—_roads-management-office-rmo.png | 165.91 KB | alanburke |
Comments
Comment #2
keepeek_dam commentedDoes this behavior occur on all types of users? (manager, contributor, visitor, etc.)
We suspect a problem with the rights of the user who would not have access to the WHR format of the image, and if this is the case, we will set up a mechanism to get another image format.
Can you provide us with the login of the user used to reproduce this case?
Comment #3
keepeek_dam commentedFixed in version 1.0.1