@sumaris-net/ngx-components 21.0.0-rc33 → 21.0.0-rc34

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.
@@ -28830,17 +28830,20 @@ class AppImageGallerySlideshowComponent {
28830
28830
  getImageUrlQueryParams(image) {
28831
28831
  let params;
28832
28832
  // add size
28833
- if (this.imageSizeQueryParam && isNilOrBlank(this.imageSize)) {
28833
+ if (this.imageSizeQueryParam && isNotNilOrBlank(this.imageSize)) {
28834
28834
  params = {
28835
28835
  [this.imageSizeQueryParam]: this.imageSize,
28836
28836
  };
28837
28837
  }
28838
28838
  // add version
28839
28839
  if (this.imageVersionQueryParam && typeof this.imageVersionFn === 'function') {
28840
- params = {
28841
- ...params,
28842
- [this.imageVersionQueryParam]: this.imageVersionFn(image)
28843
- };
28840
+ const version = this.imageVersionFn(image);
28841
+ if (isNotNilOrBlank(version)) {
28842
+ params = {
28843
+ ...params,
28844
+ [this.imageVersionQueryParam]: version
28845
+ };
28846
+ }
28844
28847
  }
28845
28848
  return params;
28846
28849
  }