javaScript error when selecting item - WHR value not present

Created on 14 June 2024, 6 months ago

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

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇪Ireland alanburke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024