Fixed bug causing "undefined" to disappear next to a image rendered by a <% story.content as="image" %> macro
This commit is contained in:
parent
c63789a82a
commit
1e54c789f0
1 changed files with 5 additions and 1 deletions
|
@ -430,7 +430,11 @@ Story.prototype.format_filter = function(value, param, mode) {
|
|||
|
||||
case "image":
|
||||
var image = HopObject.getFromPath(value, "images");
|
||||
image && image.render_macro(param);
|
||||
if (image) {
|
||||
res.push();
|
||||
image.render_macro(param);
|
||||
return res.pop();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue