diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-10 17:02:30 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-10 17:02:30 +0100 |
| commit | 8abd3ccd48c6d3b1c46f92a28e431385cca3e656 (patch) | |
| tree | 39aa575a6c42049254f58dac16ca1d3487a10559 /animism-align/frontend/app/views/venue/components/venue.form.js | |
| parent | 136eeeda21cefe3544b3d7ffd4210f9788774301 (diff) | |
venue form. add project ID to venue
Diffstat (limited to 'animism-align/frontend/app/views/venue/components/venue.form.js')
| -rw-r--r-- | animism-align/frontend/app/views/venue/components/venue.form.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/animism-align/frontend/app/views/venue/components/venue.form.js b/animism-align/frontend/app/views/venue/components/venue.form.js index b1a124f..7ffa098 100644 --- a/animism-align/frontend/app/views/venue/components/venue.form.js +++ b/animism-align/frontend/app/views/venue/components/venue.form.js @@ -111,8 +111,8 @@ export default class VenueForm extends Component { } const { isNew, onSubmit } = this.props const { data } = this.state - const requiredKeys = "title date".split(" ") - const validKeys = "title date settings".split(" ") + const requiredKeys = "project_id title date".split(" ") + const validKeys = "project_id title date settings".split(" ") const validData = validKeys.reduce((a,b) => { a[b] = data[b]; return a }, {}) const errorFields = requiredKeys.filter(key => !validData[key]) if (errorFields.length) { @@ -132,7 +132,6 @@ export default class VenueForm extends Component { render() { const { isNew } = this.props const { title, submitTitle, errorFields, data } = this.state - // console.log(data) return ( <div className='form'> <h1>{title}</h1> |
