javaScript error when selecting item - WHR value not present

Created on 14 June 2024, 4 months ago
Updated 31 July 2024, about 2 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

  • Issue created by @alanburke
  • Does 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?

Production build 0.71.5 2024