fix(templates): fix when the "no templates" message is displayed

This commit is contained in:
Drew Regitsky 2016-01-20 10:24:45 -08:00
parent 67a194f5fa
commit 6ae7fb7aef

View file

@ -241,7 +241,7 @@ class PreferencesTemplates extends React.Component
else @_renderName()
}
{if @state.editState isnt "new" then editor}
{if @state.editState is "new" then noTemplatesMessage}
{if @state.templates.length==0 then noTemplatesMessage}
</section>
<section className="templates-instructions">