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 editing
pull/10616/head
Brandon Farmer 2018-04-02 11:28:32 -07:00
parent f7ec7906d4
commit a6d11a0e12
1 changed files with 2 additions and 2 deletions

View File

@ -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