diff --git a/package.json b/package.json index cd7c2e4..803266e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CustomString", - "version": "2.2.5", + "version": "2.2.6", "description": "Create a string with a microflow", "license": "", "author": "", diff --git a/src/CustomString/widget/CustomString.js b/src/CustomString/widget/CustomString.js index 45eea66..cb061d6 100644 --- a/src/CustomString/widget/CustomString.js +++ b/src/CustomString/widget/CustomString.js @@ -86,7 +86,9 @@ define([ _processSourceMFCallback: function (callback, returnedString) { logger.debug(this.id + "._processSourceMFCallback"); - html.set(this.customString, this.checkString(returnedString, this.renderHTML)); + if (this.customString) { + html.set(this.customString, this.checkString(returnedString, this.renderHTML)); + } this._executeCallback(callback, "_processSourceMFCallback"); }, diff --git a/src/package.xml b/src/package.xml index 41b81bb..14a37ad 100644 --- a/src/package.xml +++ b/src/package.xml @@ -1,6 +1,6 @@ - + diff --git a/test/widgets/CustomString.mpk b/test/widgets/CustomString.mpk index 7aa8606..b4b9562 100644 Binary files a/test/widgets/CustomString.mpk and b/test/widgets/CustomString.mpk differ