Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Fix travis config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Sep 27, 2019
1 parent 24641e0 commit b15eb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion web/init/src/ShipConfigRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export class ShipConfigRenderer extends React.Component {
<ConfigRender
fieldsList={groupsList}
fields={_groups}
handleChange={this.props.handleChange}
handleChange={this.props.handleChange || (() => { return; })}
getData={this.props.getData || (() => { return; })}
/>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion web/init/src/components/config_render/ConfigRender.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class ConfigRender extends React.Component {
this.setState({groups: keyBy(groups, "name")});

// TODO: maybe this should only be on submit
this.triggerChange(groups);
this.triggerChange(this.props.getData(groups));
}

componentDidUpdate(lastProps) {
Expand Down

0 comments on commit b15eb85

Please sign in to comment.