diff --git a/frontend/app/gallery/gallery.service.ts b/frontend/app/gallery/gallery.service.ts index 9cd1360c..ad8cf3de 100644 --- a/frontend/app/gallery/gallery.service.ts +++ b/frontend/app/gallery/gallery.service.ts @@ -81,7 +81,7 @@ export class GalleryService { return null } - this.content.next(null); + this.content.next(new ContentWrapper()); const cw: ContentWrapper = await this.networkService.getJson("/search/" + text, {type: type}); console.log("photos", cw.searchResult.photos.length); console.log("direcotries", cw.searchResult.directories.length);