Skip to content
Snippets Groups Projects
Unverified Commit 6ba81f1c authored by Tom Robinson's avatar Tom Robinson
Browse files

Restrict collection name to 100 characters or less. Only enforced on frontend for now

parent 7139b946
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ import { reduxForm } from "redux-form";
const errors = {};
if (!values.name) {
errors.name = "Name is required";
} else if (values.name.length > 100) {
errors.name = "Name must be 100 characters or less";
}
if (!values.color) {
errors.color = "Color is required";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment