Skip to content

Commit

Permalink
Check if HTML element is present
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelte Lagendijk committed Apr 5, 2018
1 parent 6dd3dde commit ce3613a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CustomString",
"version": "2.2.5",
"version": "2.2.6",
"description": "Create a string with a microflow",
"license": "",
"author": "",
Expand Down
4 changes: 3 additions & 1 deletion src/CustomString/widget/CustomString.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},

Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="CustomString" version="2.2.5" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="CustomString" version="2.2.6" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="CustomString/CustomString.xml"/>
<widgetFile path="CustomString/CustomStringNoContext.xml"/>
Expand Down
Binary file modified test/widgets/CustomString.mpk
Binary file not shown.

0 comments on commit ce3613a

Please sign in to comment.