Skip to content

Commit

Permalink
issue OpenRoberta#229 - asserting whether an oobject is given not to …
Browse files Browse the repository at this point in the history
…throw the exception, so the run button would be reactivated
  • Loading branch information
Artem Vinokurov committed Nov 8, 2019
1 parent 57be666 commit 327fe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRobertaServer/staticResources/js/helper/msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ define([ 'exports', 'log', 'jquery', 'blocks-msg' ], function(exports, LOG, $, B
} else {
value = value.replace(/\{[^\}]+\}/g, replaceWith);
}
} else {
} else if ( typeof replaceWith === "object" ) {
if (value.indexOf("$") >= 0) {
var keys = Object.keys(replaceWith);
value = value.replace("$", replaceWith[keys[0]]);
Expand Down

0 comments on commit 327fe0f

Please sign in to comment.