Commit ecc0c11d authored by Luke Brown's avatar Luke Brown 🤖
Browse files

update rules so that they properly error on null. This fixes case where user...

update rules so that they properly error on null. This fixes case where user typed to get past initial value check then backspaced their content to an empty string
parent e8a559f3
Pipeline #1068 failed with stages
......@@ -191,9 +191,10 @@ export default {
timeMenu: false,
rules: {
required: (value) => !!value || "Required.",
nameLength: (value) => value.length <= 50 || "Max 50 characters",
nameLength: (value) =>
(value.length <= 50 && value !== null) || "Max 50 characters",
descriptionLength: (value) =>
value.length <= 255 || "Max 255 characters",
(value.length <= 255 && value !== null) || "Max 255 characters",
},
headers: [
{ text: "Name", value: "name" },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment