fix(templates): fix two bugs breaking templates plugin rename and search

This commit is contained in:
Drew Regitsky 2016-01-11 15:28:31 -08:00
parent 6a735da033
commit 2849cce077
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class TemplatePicker extends React.Component {
});
}
_onSearchValueChange() {
_onSearchValueChange = () => {
const newSearch = event.target.value;
return this.setState({
searchValue: newSearch,

View file

@ -163,7 +163,7 @@ class TemplateStore extends NylasStore {
_getTemplate(name, id) {
for (const template of this._items) {
if ((template.name === name || name === null) && (template.id === id || id === null)) {
if ((template.name === name || name == null) && (template.id === id || id == null)) {
return template;
}
}