Let widget should specify a default value for variables

Fixes #7270
This commit is contained in:
jeremy@jermolene.com 2023-02-25 13:41:13 +00:00
parent 925ce2b505
commit 8c378e0d24
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ LetWidget.prototype.getVariableInfo = function(name,options) {
text: this.currentValueFor[name]
};
}
return Widget.prototype.getVariableInfo.call(this,name,options);
return Widget.prototype.getVariableInfo.call(this,name,$tw.utils.extend(Object.create(null),options,{
defaultValue: ""
}));
};
/*