mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-20 19:41:32 -08:00
Fix up missing variable values
We were crashing if a variable was inadvertantly set to undefined
This commit is contained in:
parent
adf16eeaf3
commit
ff4d76f045
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ Widget.prototype.getVariable = function(name,options) {
|
|||
return this.evaluateMacroModule(name,actualParams,options.defaultValue);
|
||||
}
|
||||
// Get the value
|
||||
var value = node.variables[name].value;
|
||||
var value = node.variables[name].value || "";
|
||||
// Substitute any parameters specified in the definition
|
||||
value = this.substituteVariableParameters(value,node.variables[name].params,actualParams);
|
||||
value = this.substituteVariableReferences(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue