balena-io / pensieve

A tool for managing and viewing structured documents, backed by the power of git
7 stars 5 forks source link

Pensieve allows you to add a field with a blank name #268

Open lurch opened 6 years ago

lurch commented 6 years ago

Expected Behavior

Penseive should display a warning if you try to add a field with a blank name

Actual Behavior

Pensieve allows you to create entries with a blank name Technically this isn't a bug, as you're still able to add content to this field (see the reproduction below) but I expect it's probably undesired behaviour.

Steps to Reproduce the Problem

  1. Edit an entry
  2. Click Add field without entering a field name
  3. Pensieve adds this new field
  4. Type some content into this header-less field
  5. Click save
  6. Pensieve displays this header-less field content in the entry

Specifications

whatsmybrowser.org/b/MDKAR48