@sumaris-net/ngx-components 21.0.0-rc26 → 21.0.0-rc27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29700,7 +29700,7 @@ class AppImageGalleryComponent {
29700
29700
  * Can be called from outside the component (e.g. to open the gallery directly on a given image).
29701
29701
  */
29702
29702
  async openSlideshow(event, row) {
29703
- const index = this.rows?.findIndex((r) => r === row);
29703
+ const index = row && this.rows?.findIndex((r) => r === row || r.id === row?.id);
29704
29704
  if (index == null || index < 0 || index >= this.rowCount) {
29705
29705
  console.warn(`[image-gallery] Cannot open slideshow: invalid index (${index})`);
29706
29706
  return;