1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Fix crash for macros that return undefined

Fixes #1348
This commit is contained in:
Jermolene 2015-01-10 13:36:43 +00:00
parent 31824f043e
commit 280909bb68

View File

@ -171,7 +171,7 @@ Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue)
else for(var i=0; i<actualParams.length; ++i) {
args.push(actualParams[i].value);
}
return macro.run.apply(this,args).toString();
return (macro.run.apply(this,args) || "").toString();
} else {
return defaultValue;
}