n8n
n8n copied to clipboard
fix(editor): Show correct schema for output with falsy keys
Summary
If the output data contains objects that have properties with falsy values, the schema would incorrectly be hidden. This fixes the empty data check to show the schema in these cases.
Before:
After:
Related tickets and issues
https://linear.app/n8n/issue/ADO-1648/bug-schema-view-does-not-render-when-only-boolean-item
Review / Merge checklist
- [x] PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use
(no-changelog)
otherwise. (conventions) - [ ] Docs updated or follow-up ticket created.
- [x] Tests included.
A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests.