0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix metadata not working. Some earlier linting caused the handleFieldChange and handleSystem functions to not have access to event data. Returning these to their pre-lint state for now, but there might be a more lint-friendly way to do this later.

This commit is contained in:
Trevor Buckner
2018-11-08 15:45:39 -05:00
parent 24aec1c649
commit 77081b39b4

View File

@@ -68,7 +68,7 @@ const MetadataEditor = createClass({
<input
type='checkbox'
checked={_.includes(this.props.metadata.systems, val)}
onChange={()=>this.handleSystem(val)} />
onChange={this.handleSystem.bind(null, val)} />
{val}
</label>;
});
@@ -133,18 +133,18 @@ const MetadataEditor = createClass({
<label>title</label>
<input type='text' className='value'
value={this.props.metadata.title}
onChange={()=>this.handleFieldChange('title')} />
onChange={this.handleFieldChange.bind(null, 'title')} />
</div>
<div className='field description'>
<label>description</label>
<textarea value={this.props.metadata.description} className='value'
onChange={()=>this.handleFieldChange('description')} />
onChange={this.handleFieldChange.bind(null, 'description')} />
</div>
{/*}
<div className='field tags'>
<label>tags</label>
<textarea value={this.props.metadata.tags}
onChange={()=>this.handleFieldChange('tags')} />
onChange={this.handleFieldChange.bind(null, 'tags')} />
</div>
*/}