n8n icon indicating copy to clipboard operation
n8n copied to clipboard

fix(editor): Show correct schema for output with falsy keys

Open tomi opened this issue 1 month ago • 0 comments

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:

image

After:

image

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.

tomi avatar May 30 '24 14:05 tomi