-
Notifications
You must be signed in to change notification settings - Fork 503
Closed
Description
When the user removed the input value, the value (fact) will becomes undefined.
Which throws an error according to the following code...
if (typeof this.value === 'undefined' && typeof this.calculationMethod === 'undefined') {
throw new Error('facts must have a value or method')
}Link: https://github.com/CacheControl/json-rules-engine/blob/master/src/fact.js#L29
One possible solution is to pass allowUndefinedFacts: true to the Fact Class.
Related issues: #111
chenlevy and lianghua1987
Metadata
Metadata
Assignees
Labels
No labels