@tryghost/kg-unsplash-selector 0.4.0 → 0.4.1

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.
package/dist/index.es.js CHANGED
@@ -388,7 +388,8 @@ var s = class {
388
388
  this.photoUseCases = e, this.masonryService = t;
389
389
  }
390
390
  async loadNew() {
391
- this.photos = await this.photoUseCases.fetchPhotos(), await this.layoutPhotos();
391
+ let e = await this.photoUseCases.fetchPhotos();
392
+ this.photos = e, await this.layoutPhotos();
392
393
  }
393
394
  async layoutPhotos() {
394
395
  this.masonryService.reset(), this.photos && this.photos.forEach((e) => {
@@ -399,7 +400,8 @@ var s = class {
399
400
  return this.masonryService.getColumns();
400
401
  }
401
402
  async updateSearch(e) {
402
- this.photos = await this.photoUseCases.searchPhotos(e), this.layoutPhotos();
403
+ let t = await this.photoUseCases.searchPhotos(e);
404
+ this.photos = t, this.layoutPhotos();
403
405
  }
404
406
  async loadNextPage() {
405
407
  let e = await this.photoUseCases.fetchNextPage() || [];