From 3b00ca8991f7092aa1cb3d584df12a0368f4fa4b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 16:20:01 +0200 Subject: form works! add graph reducer, fonts --- frontend/views/index/components/graph.form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/views/index/components/graph.form.js') diff --git a/frontend/views/index/components/graph.form.js b/frontend/views/index/components/graph.form.js index ef546ec..a6a0dd6 100644 --- a/frontend/views/index/components/graph.form.js +++ b/frontend/views/index/components/graph.form.js @@ -68,8 +68,8 @@ export default class GraphForm extends Component { e.preventDefault() const { isNew, onSubmit } = this.props const { data } = this.state - const requiredKeys = "title username".split(" ") - const validKeys = "title username notes archived".split(" ") + const requiredKeys = "title username path description".split(" ") + const validKeys = "title username path description".split(" ") const validData = validKeys.reduce((a,b) => { a[b] = data[b]; return a }, {}) const errorFields = requiredKeys.filter(key => !validData[key]) if (errorFields.length) { -- cgit v1.2.3-70-g09d2