You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When evaluating if/then condition, undefinedformData is initially passed to evaluate the if condition which will always returns true even if required is set in the if condition. See simple codesandbox which validates a simple "if" conditional expression.
I think in the resolveCondition logic it should always default to empty object if the formData is undefined. This will then make sure the conditional expression is always evaluated correctly.
Expected Behavior
if conditional expression should not be valid for undefined/empty formData object.
Steps To Reproduce
No response
Environment
- OS:
- Node:
- npm:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
What theme are you using?
core
Version
5.7
Current Behavior
When evaluating if/then condition,
undefined
formData
is initially passed to evaluate the if condition which will always returns true even ifrequired
is set in the if condition. See simple codesandbox which validates a simple "if" conditional expression.I think in the resolveCondition logic it should always default to empty object if the formData is undefined. This will then make sure the conditional expression is always evaluated correctly.
Expected Behavior
if conditional expression should not be valid for undefined/empty formData object.
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: