-
-
Notifications
You must be signed in to change notification settings - Fork 533
Open
Description
Description
When a <Query> component's fields are updated while a condition still references a removed field, an "Uncaught TypeError: Cannot read properties of undefined" is thrown, causing the component to crash.
Reproduction
Live example: Netlify demo
Source code: GitHub
Steps:
- Click "Add group".
- Select "Test group" in the group selector.
- Select "Number field" in the field selector.
- Click "Clear" near the top-left selector to remove the group's fields.
- Component crashes.
Expected behavior
The component should not crash. Removed fields should be handled gracefully, keeping the component functional.
Example of correct behavior: Netlify demo
Additional context
The issue originates in validation.js where item becomes undefined.
Metadata
Metadata
Assignees
Labels
No labels