Undo previous name change
was not the right instance, going to leave this how it waspull/10616/head
parent
275718ebb1
commit
f99a562606
|
@ -37,7 +37,7 @@ const FieldListItem = React.createClass({
|
|||
this.props.onToggleField(this.props.fieldFunc)
|
||||
},
|
||||
|
||||
onApplyFunctions(selectedFuncs) {
|
||||
handleApplyFunctions(selectedFuncs) {
|
||||
this.props.onApplyFuncsToField({
|
||||
field: this.props.fieldFunc.field,
|
||||
funcs: this.props.isKapacitorRule ? [selectedFuncs.text] : selectedFuncs,
|
||||
|
@ -67,7 +67,7 @@ const FieldListItem = React.createClass({
|
|||
{isSelected
|
||||
? <Dropdown
|
||||
items={items}
|
||||
onChoose={this.onApplyFunctions}
|
||||
onChoose={this.handleApplyFunctions}
|
||||
selected={
|
||||
fieldFunc.funcs.length ? fieldFunc.funcs[0] : 'Function'
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ const FieldListItem = React.createClass({
|
|||
</div>
|
||||
{(isSelected && isOpen)
|
||||
? <FunctionSelector
|
||||
onApply={this.onApplyFunctions}
|
||||
onApply={this.handleApplyFunctions}
|
||||
selectedItems={fieldFunc.funcs || []}
|
||||
/>
|
||||
: null}
|
||||
|
|
Loading…
Reference in New Issue