From 44c0a9ee9c3329e70d9f645cccef0aa04f96cd2b Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 5 Jan 2023 22:03:52 -0800 Subject: [PATCH] Fix compilation --- packages/mindplot/src/components/Topic.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mindplot/src/components/Topic.ts b/packages/mindplot/src/components/Topic.ts index 922f5676..72e7b176 100644 --- a/packages/mindplot/src/components/Topic.ts +++ b/packages/mindplot/src/components/Topic.ts @@ -442,7 +442,7 @@ abstract class Topic extends NodeGraph { getFontColor(): string { const model = this.getModel(); let result = model.getFontColor(); - if (!$defined(result)) { + if (!result) { const font = TopicStyle.defaultFontStyle(this); result = font.color; } @@ -452,7 +452,7 @@ abstract class Topic extends NodeGraph { getFontStyle(): string { const model = this.getModel(); let result = model.getFontStyle(); - if (!$defined(result)) { + if (!result) { const font = TopicStyle.defaultFontStyle(this); result = font.style; } @@ -462,7 +462,7 @@ abstract class Topic extends NodeGraph { getFontSize(): number { const model = this.getModel(); let result = model.getFontSize(); - if (!$defined(result)) { + if (!result) { const font = TopicStyle.defaultFontStyle(this); result = font.size; }