Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"lodash.remove": "^4.3.0",
"lodash.set": "^4.1.0",
"lodash.size": "^4.0.6",
"lodash.trimstart": "^4.5.1",
"lodash.uniq": "^4.2.1",
"material-ui": "0.15.0-alpha.2",
"mathjs": "^3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion app/renderer-jsx/schema-form/schema-form.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const lo_set = require('lodash.set');
const lo_trimStart = require('lodash.trimstart');

import React from 'react';
import { CardTitle, CardText } from 'material-ui';
Expand Down Expand Up @@ -38,7 +39,7 @@ class SchemaForm extends React.Component {

handleChange(path, val) {
const model = this.state.model;
lo_set(model, path, val);
lo_set(model, lo_trimStart(path, '.'), val);
this.setState({ model });
this.props.onChange(model);
}
Expand Down