input: accept undefined value

This commit is contained in:
jean-emmanuel 2017-07-11 18:38:54 +02:00
parent 39dacddaa7
commit fd982b760e

View file

@ -210,6 +210,7 @@ module.exports = class Input extends _canvas_base {
}
getStringValue() {
if (this.value === undefined) return ''
return typeof this.value != 'string' ?
JSON.stringify(Input.deepCopyWithPrecision(this.value, this.precision)).replace(/,/g, ', ') :
this.value