image: avoid type error

This commit is contained in:
bordun 2020-09-06 15:10:09 +02:00
parent a2f2f89aab
commit 7fb857e670

View file

@ -55,6 +55,8 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) {
setValue(v, options={}) {
if (typeof this.value !== 'string') return
var s = v==null ? '' : '' + v,
cache_query = ''