Skip to content

After 10th image, CDS media preview shows 2 images

Summary

When adding multiple images in a CDS media field, if adding more than 10 images, the preview breaks.

Steps to reproduce

  1. Create a node with CDS Media field
  2. Add more than 10 images
  3. Check the 11th+ images

Possible fixes

Most probably caused from the preview of the image in https://gitlab.cern.ch/web-team/drupal/public/d8/modules/cern-cds-media/-/blob/master/js/cern_cds_media.js

Edited by Konstantinos Platis
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information