From e32110c73a53b1f782e24ed730a486fb51d4d373 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 28 Aug 2019 09:56:45 +0100 Subject: [PATCH] Fixed "undefined" appearing in markdown card styles no issue --- lib/koenig-editor/addon/components/koenig-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/koenig-editor/addon/components/koenig-card.js b/lib/koenig-editor/addon/components/koenig-card.js index 5ceb06c8d..9163b52a2 100644 --- a/lib/koenig-editor/addon/components/koenig-card.js +++ b/lib/koenig-editor/addon/components/koenig-card.js @@ -81,7 +81,7 @@ export default Component.extend({ // TODO: replace with Spirit classes let baseStyles = 'cursor: default; caret-color: auto;'; - this.set('_style', htmlSafe(`${baseStyles} ${this.style}`)); + this.set('_style', htmlSafe(`${baseStyles} ${this.style || ''}`)); if (isSelected !== this._lastIsSelected) { if (isSelected) {