From ba496417ce68e49ca16ea1f2e05d368e95821d92 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Mon, 12 Apr 2021 15:38:21 +0000 Subject: [PATCH] [Library|Trunk] SEO - robots filter: check for empty values git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60842 d315682c-612b-4755-9ff5-7f18f6832af3 --- landingPages/result/resultLanding.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index cec8d099..455db14e 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -673,9 +673,9 @@ export class ResultLandingComponent { } } private hasKeyword(value:string, words:string[]){ - return words.filter( word => { return value.toLowerCase().indexOf(word)!=-1}).length > 0; + return value?words.filter( word => { return value.toLowerCase().indexOf(word)!=-1}).length > 0:0; } private isKeyword(value:string, words:string[]){ - return words.filter( word => { return value.toLowerCase() == word}).length > 0; + return value?words.filter( word => { return value.toLowerCase() == word}).length > 0:0; } }