From 5059436551ab995eac23f75786cc255d9058b539 Mon Sep 17 00:00:00 2001 From: mauriziovitale84 Date: Tue, 25 Oct 2016 17:37:55 +0100 Subject: [PATCH] Fix empty text --- .../src/components/raphael/raphael-text.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ng2-components/ng2-activiti-analytics/src/components/raphael/raphael-text.component.ts b/ng2-components/ng2-activiti-analytics/src/components/raphael/raphael-text.component.ts index 45ecdae269..b116d5df89 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/raphael/raphael-text.component.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/raphael/raphael-text.component.ts @@ -41,6 +41,9 @@ export class RaphaelTextDirective extends RaphaelBase implements OnInit { ngOnInit() { console.log(this.elementRef); + if (this.text === null || this.text === undefined) { + this.text = ''; + } this.draw(this.position, this.text); }