From 340838f0707455b7f73ecd6cc92ed09ff7046263 Mon Sep 17 00:00:00 2001 From: Patrik Braun Date: Fri, 28 Jul 2017 00:08:35 +0200 Subject: [PATCH] bug fix --- frontend/app/gallery/gallery.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);