Few form fixes

This commit is contained in:
Aarni Halinen
2020-07-24 23:05:05 +03:00
parent e00b0fafa4
commit 140314cd89
2 changed files with 8 additions and 6 deletions
+7 -5
View File
@@ -200,16 +200,18 @@ class EventCreatePage extends React.Component<EventCreatePageProps, EventCreateP
type: ["array"],
title: "Signup forms",
items: {
type: ["number", "null"],
// TODO: A bug here, DB must have at least one SignupForm, otherwise cannot submit
enum: [...signupForm.map(form => form.id)],
enumNames: [...signupForm.map(form => form.title)],
enum: signupForm.map(form => form.id),
enumNames: signupForm.map(form => form.title),
},
uniqueItems: true,
},
image: {
"type": ["string", "null"],
"format": formData.image ? "uri-reference" : "data-url",
"title": "Override tag icon with image"
type: ["string", "null"],
format: formData.image ? "uri-reference" : "data-url",
title: "Override tag icon with image",
default: ""
},
finnish_section_divider: {
title: "Finnish",
+1 -1
View File
@@ -136,7 +136,7 @@ class SignupCreatePage extends React.Component<SignupCreatePageProps, SignupCrea
default: true,
},
quota: {
type: "integer",
type: ["integer", "null"],
title: "Quota",
minimum: 0,
default: null,