harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Quick Add: empty section can be added #1982

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

In the new Quick Add, there's no check that the user entered anything in the text field, so just clicking "Add" will add an empty section called "Untitled" that would be annoying to correct.

The Search/Add button should not do anything if nothing was entered in the field.