Make KapacitorRulesTable 'id' & 'for' html props unique

pull/10616/head
Jared Scheib 2018-03-16 16:16:33 -07:00
parent 4ed4be638d
commit dcc05ee382
1 changed files with 2 additions and 2 deletions

View File

@ -65,13 +65,13 @@ const RuleRow = ({rule, source, onDelete, onChangeRuleStatus}) =>
<td style={{width: colEnabled}} className="text-center"> <td style={{width: colEnabled}} className="text-center">
<div className="dark-checkbox"> <div className="dark-checkbox">
<input <input
id={`kapacitor-enabled ${rule.id}`} id={`kapacitor-rule-row-task-enabled ${rule.id}`}
className="form-control-static" className="form-control-static"
type="checkbox" type="checkbox"
defaultChecked={rule.status === 'enabled'} defaultChecked={rule.status === 'enabled'}
onClick={onChangeRuleStatus(rule)} onClick={onChangeRuleStatus(rule)}
/> />
<label htmlFor={`kapacitor-enabled ${rule.id}`} /> <label htmlFor={`kapacitor-rule-row-task-enabled ${rule.id}`} />
</div> </div>
</td> </td>
<td style={{width: colActions}} className="text-right"> <td style={{width: colActions}} className="text-right">