diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:20:01 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:20:01 +0200 |
| commit | 3b00ca8991f7092aa1cb3d584df12a0368f4fa4b (patch) | |
| tree | 47efdb9f7dbbd226fd7c43111e7e052467f47618 /frontend/views/index/components/graph.form.js | |
| parent | 2db55c3d261ddee52019bbd06dc5f6545db39c16 (diff) | |
form works! add graph reducer, fonts
Diffstat (limited to 'frontend/views/index/components/graph.form.js')
| -rw-r--r-- | frontend/views/index/components/graph.form.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
