Fixes boolean logic for template var dropdowns

pull/10616/head
Brandon Farmer 2018-05-04 10:54:08 -07:00
parent 5c8eae0d44
commit 53052dd7b9
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const TemplateControlDropdown: SFC<Props> = ({
menuClass="dropdown-astronaut" menuClass="dropdown-astronaut"
useAutoComplete={true} useAutoComplete={true}
selected={selectedItem.text} selected={selectedItem.text}
disabled={!isUsingAuth || !isUserAuthorized(meRole, EDITOR_ROLE)} disabled={isUsingAuth && !isUserAuthorized(meRole, EDITOR_ROLE)}
onChoose={onSelectTemplate(template.id)} onChoose={onSelectTemplate(template.id)}
/> />
<label className="template-control--label">{template.tempVar}</label> <label className="template-control--label">{template.tempVar}</label>