formula: don't throw errors when parsing fail (issue #145)

This commit is contained in:
jean-emmanuel 2018-02-09 19:22:29 +01:00
parent a24f8c53a7
commit 1d36b3b7ff

View file

@ -136,8 +136,7 @@ module.exports = class Formula extends Widget {
} catch(err) {
throw new Error('Error parsing formula "' + this.condition + '" (' + err + ')')
this.conditionState = false
}
}
@ -157,7 +156,7 @@ module.exports = class Formula extends Widget {
} catch(err) {
throw new Error('Error parsing formula "' + this.formula + '" (' + err + ')')
this.value = undefined
}