From d49a8778be89fd2b8bf4868d846d02e94583e07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Tue, 21 Nov 2017 14:10:47 -0500 Subject: [PATCH] fix(query): To avoid empty html returns. (#104) --- src/lib/query/shared/query.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/query/shared/query.service.ts b/src/lib/query/shared/query.service.ts index 6406ce2e52..b3cc992c05 100644 --- a/src/lib/query/shared/query.service.ts +++ b/src/lib/query/shared/query.service.ts @@ -178,6 +178,11 @@ export class QueryService { break; } + if ( res['_body'] === '') { + return []; + } + + return [{ id: 'html1', source: 'title',