Fixes template variable editing not allowing saving
- Dropdown and TemplateQueryBuilder components require that a function is passed to them, where as TableInput requires that a function builder is passed to them for starting editingpull/10616/head
parent
f7ec7906d4
commit
a6d11a0e12
|
@ -70,7 +70,7 @@ const TemplateVariableRow = ({
|
|||
<Dropdown
|
||||
items={TEMPLATE_TYPES}
|
||||
onChoose={onSelectType}
|
||||
onClick={onStartEdit}
|
||||
onClick={onStartEdit('tempVar')}
|
||||
selected={TEMPLATE_TYPES.find(t => t.type === selectedType).text}
|
||||
className="dropdown-140"
|
||||
/>
|
||||
|
@ -84,7 +84,7 @@ const TemplateVariableRow = ({
|
|||
selectedMeasurement={selectedMeasurement}
|
||||
selectedTagKey={selectedTagKey}
|
||||
onSelectTagKey={onSelectTagKey}
|
||||
onStartEdit={onStartEdit}
|
||||
onStartEdit={onStartEdit('tempVar')}
|
||||
onErrorThrown={onErrorThrown}
|
||||
/>
|
||||
<RowValues
|
||||
|
|
Loading…
Reference in New Issue